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

  • Raising December 12, 2017
    As some of you readers may know, over the last two years, in 'stealth' I've been working on a Meta-charitable idea called Kinder.  It started with a What if...
  • Bore the spammers to death. AI to the resque. November 9, 2017
    Email scamming is a billion dollar business with millions of victims.Netsafe came up with a weapon. I like this approach.
  • Artificial intelligence-powered dystopia November 1, 2017
    In an eye-opening talk, she details how the same algorithms companies like Facebook, Google and Amazon use to get you to click on ads are also used to organize your access to political and social information. And the machines aren't even the real threat. What we need to understand is how the powerful might use […]