upload

Description

For uploading images, video and audio to Mobypicture. Mobyicture does NOT send out a Tweet, but WILL send the file to other services set by the user.

URL Endpoint

https://api.mobypicture.com/2.0/upload.format

Authentication

Mobypicture username and password or OAuth Echo

HTTP Method

POST

Available formats

xml, json and txt. If no format is given, JSON will be returned.

Parameters

  • key
    • Your developer key, which you can apply for here.
  • media
    • Raw media data
  • message
    • title or message

Optional parameters

  • Description
    • Besides a title, we also accept a description
  • latlong
    • Latitude and Longitude where media was taken. If not provided, we try to extrapolate it from the EXIF data
  • tags

Response

XML

<?xml version="1.0" encoding="utf-8"?>
<rsp stat="ok">
  <mediaid>6646300</mediaid>
  <mediaurl>http://moby.to/9i8xe1</mediaurl>
</rsp>

JSON

{
	"media":
	{
		"mediaid":"6646300",
		"mediaurl":"http:\/\/moby.to\/9i8xe1"
	}
}

Text
http://moby.to/1234

This page is last updated on May 28, 2010 by

5 Responses to upload

Avatar

Andy

July 18th, 2010 at 2:59 am

I tried upload using Oauth Echo but it failed. “Connection reset by peer” is the message I got by the call.
Oauth Echo upload was successful on TwitPic, and I only changed api key and endpoint in my upload method.
Is there anything else I need?
( I omitted “message” parameter, which was not problem on TwitPic )

Avatar

Timan Rebel

July 20th, 2010 at 11:57 am

I will have a look at it. Could you mail me your API key at timan@mobypicture.com?

Avatar

Arno Moonen

October 13th, 2010 at 12:47 pm

Is the ‘services’ parameter (as seen in postMedia) available when using the upload method?

Avatar

Arvin

January 28th, 2011 at 2:54 pm

When using Twitter OAuth echo, what if the user does not have an account with MobyPicture?

Avatar

Timan Rebel

February 1st, 2011 at 4:46 pm

we create it for you!

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

  • We won in court. Sort of. August 31, 2017
    This guy, Bram Gorissen took us to trial over a picture. He said he was sueing many blogs and platforms for supposed infringement of his copyright. He took a picture of a train in 2011, posted the picture on a popular Dutch forum, fok.nl. "As a courtesy to the owner of that platform" who is […]
  • Do you remember all of these? August 15, 2017
  • Supporting Bas support two great initiatives July 10, 2017
    I met Bas at the beginning of this year at an IPAN event. It was the first event where I spoke about Kinder.