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

  • Drawing or colouring? January 8, 2019
    Some of us prefer drawing over coloring, but need a clear plan.Some people just start drawing the first line on paper. They have a vague idea about what they want to create.A tree or dinosaur.This weekend I went to a dinosaur workshop with my son (4).He likes dinosaurs, hey, everybody likes dinosaurs, but he loves […]
  • Ten books I read in 2018 December 31, 2018
    1. Enlightenment Now Steven Pinker Found it very difficult to read. And I didn’t finish it. Pinker tries to be very eloquent in every single sentence. Couldn’t finish more than one chapter at the time. There are quite some interesting pleas in there for liberalism, but it didn't stick with me. I think that the […]
  • Last newsletter of the year December 29, 2018
    Kinder World went live, we vetted hundreds of charities with the help of our amazing summer interns, launched our donation widget and already started collecting donations. I'm looking forward to 2019 and what it will bring us. In the meantime, instead of the classic newsletter I thought I would share some of my favourite storied […]