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

  • Kinder Widget October 15, 2018
    Last week we launched the Kinder widget and now we're looking for partners. At Kinder we empower people to instantly and effectively act on the global challenges of our time by facilitating donations to charitable organisations. The more effective the organisation performs, the more it will be promoted on our donation platforms. In collaboration with […]
  • Embracing your inner child September 28, 2018
    Jason gathered some other birds of paradise who live in Amsterdam or were visiting at the moment from the US.Amongst them, free spirit film maker Seth Bunting, an immersive experience/design artist, his newly found girlfriend Dutch dance instructor and flow consultant Nathalie, Gerard Adams, founder of Elite Daily and 'The Millenium Mentor' and his friend Mia. Jason is a […]
  • We're not competing in the World Cup.... June 27, 2018
    On Tuesday’s "America's Got Talent"-show, Glennis Grace went on stage to perform a cover of the late legend, Whitney Houston's “Run to You”.