postMedia

Description

Distributing media via Mobypicture is done by doing a HTTP-POST call to our servers.
Please make sure you are using multipart/form-data as your encoding type.

There is no need to specify which kind of file you are uploading (photo/audio/video), just make sure the file gets to us in one piece and we’ll sort things out.

You can test posting to Mobypicture by using our very basic POST-testing tool

URL Endpoint

https://api.mobypicture.com/

Requires Authentication

Yes, read more about our authentication.

HTTP Method

POST, please make sure you are using multipart/form-data as your encoding type.

Supported filetypes

Photo

  • jpeg
  • png
  • bmp
  • gif

Video

  • flv
  • mpeg
  • mkv *
  • wmv
  • mov
  • 3gp
  • mp4
  • avi *

Audio

  • mp3
  • wma
  • aac
  • aif
  • au
  • flac
  • ra
  • wav
  • ogg
  • 3gp

* Please note:
Due to different ways of encoding video files we may not be able to process some files, even when they appear in this list

Parameters

  • action

    addLike

  • key

    Your developer key, which you can apply for here.

  • i

    The binary data

Optional

  • t

    Title

  • d

    Description

  • tags

    Tags

  • latlong

    Location (lat/long) (for example: 52.364882,4.902349

  • ht

    Hashtag(s) (for example: #020

  • s

    Service(s) to post thes Media to.

    For example:
    twitter,flickr,tumblr
    or:none,+twitter
    or:all,-twitter
    or: none,#123,#32,#2 (These numbers are the ID’s acquired by calling getServices first).

  • taken_on

    Taken on (ISO 8601 date) (for example 2009-10-27T15:19:21+01:00.
    Used to backdate Poests

  • privacy_level

    ‘private’ or ‘public’. If not given ‘public’ is assumed.

  • pretty_json

    To output human readable JSON. XML is already human readable

  • format

    The desired output format. Possible values are json and xml. If no format is given, JSON will be returned.

Note: If you only supply a description (and no title), the description will automatically be used as title.

Rate Limited

Not yet.

Response

JSON

{
    "url": "http:\/\/moby.to\/di8is0",
    "id":8691258,
    result":"0",
    "message":""
}

XML

<?xml version="1.0"?>
<mobypicture>
  <result code="0"></result>
  <url>http://moby.to/n0do7r</url>
  <id>8691267</id>
</mobypicture>

Plain

0

(To get the Moby tiny url as format is ‘plain’, please use postMediaUrl)

This page is last updated on February 10, 2011 by

Comment Form

About Mobypicture Developers

Build your own applications on top of Mobypicture, like over 600 others have done before you using our extensive API.

You can find find out more about the usage of the Mobypicture API in the API Documentation. To use the API you have to get a developer key. This also allows you to promote your Mobypicture enabled app on the Mobypicture website.

Get a Mobypicture developer key

RSS Mobypicture product news

  • After we're gone March 20, 2017
    "About a month after we disappear all cooling water on nuclear facilities will have evaporated. Millions of animals will die of cancer."
  • Why don't we cheer at a central place online? March 20, 2017
    Catching the energy Energy flows around social gatherings. When we enter a stadium, visit a museum or go to a concert we all share the energy. It makes us stronger, it connects us, no matter what our backgrounds are.  Online their is not one space that catches this energy and bundles this power. Our tweets, FB posts, likes, […]
  • It's been an activistic month! #supportgoodcauses March 6, 2017
    1. Artikel 1I met Sylvana Simons at an event in January. I don't care too much about politics but I think the rights she's fighting for are extremely important and awareness and demystification around the topics of the new Dutch political party Artikel 1 are crucial for achieving their goal. Tag The Love can really help them get […]