| MobileTribe WS API v1.0 | February 10, 2010 |
|
Mobile Tribe Live API
Welcome
to the Mobile Tribe's Live API site. This page serves as the test portal for
the MT API intended for use by developers writing clients against the API. From here you can see
the full set of features and operations supported in the API and for each, manually execute the
operation using a custom form.
The MobileTribe WS protocol is a pseudo-REST protocol using the URL form:
http://host.mobiletribe.net/ws?PARAMETERS
where PARAMETERS are & separated NAME=VALUE pairs:
feature=FEATURE
- The feature name, such as
addressbook, alerts,
friends, messages, or pictures.
operation=OPERATION
- The operation name. Operations are specific to features. For example,
for the
messages feature, some of the operations are
DeleteMessage, DeleteSWB, GetMessage,
or SendMessage.
portal=PORTAL
- The portal name, such as
bliptv, facebook,
google, jajah, multimedia,
myspace, orb, orkut,
plaxo, yahoo, or youtube.
version=VERSION
- Optional version number. Default is 1.
skipimages=true|false
- Optional attribute that controls the embedding of images. If this attribute is omitted or
if its value is false (the default), then images are embedded and returned in
the response XML. For example, an image will be Base-64 encoded and embedded as:
<image>
/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAZAAA/+4ADkFkb2JlAGTAAAAA
Af/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgIC
...
</image>
If, the attribute is present and its value is true, then all images are instead written
to an Image cache, and only their URLs are returned in an attribute imageURL
in the image elements, as in
<image imageURL="http://demo.mobiletribe.net/wsImages/mt023947622.png"/>
To obtain the images, the client has 5 minutes to retrieved the images
separately from the specified URL. After 5 minutes, the images are removed from the cache.
MT-Application-Key=APP-KEY
- The application key. This parameter is optional in the URL. If omitted,
the application key must be provided as a request header. To obtain, an
application key, contact support@mobiletribe.net.
NAME=VALUE
- Zero or more name/value pairs specific to the Feature/Operation.
The input arguments and the XML result schemas are defined by the Feature/Operations XSD files
defined in http://schemas.mobiletribe.net/.
The specific files are accessed as:
http://schemas.mobiletribe.net/FEATURE/FEATURE-OPERATION-VERSION.xsd
All feature, operation, and portal names are case sensitive, as shown in the table.
GET vs. POST
For most requests, a URL with all the parameters sent as a GET method is sufficient. When parameter values are large, an
alternative is to use the POST method and move the parameters with long values into the POST body.
<mt_request>
<description>
Thwas Brilling and the slity Toves
Did Gimble and Gyre in the Vabe.
All Mimsy were the Borogoves, and the
Mome hast Outgrabe....
</description>
</mt_request>
The feature, operation, portal, and version parameters MUST appear in the URL. All other parameters may appear
in either the POST body or the URL.
Data Encoding
All images are either JPG or PNG Base64 encoded. Refer to external documentation for details.
Authorization
The MT WS Proxy maintains a session for each portal being accessed. To obtain a portal session, the
client has to authenticate to the requested portal in the first request and then use the provided
session id in subsequent requests to the portal.
On a first request to a portal, the client has to include the portal's userid/password as BASIC
authorization in the HTTP header attribute Authorization. The response will contain
the JSESSION cookie in the Set-Cookies response header attribute. The client should then
include the session cookie in all subsequent requests to the portal in the Cookie header
attribute.
More Information
For more information on MobileTribe, its services, and the WS API, visit
www.mobiletribe.net
Copyright 2008, 2009, Mobile Tribe Inc., All Rights Reserved.
Features and Operations
Click on the operation to see the operation's request arguments.
Feature addressbook
- Operation AddAddressBookRecord
{google, hotmail, plaxo, yahoo}
- Operation AddOrUpdateAddressBookRecordBatch
{google, plaxo, yahoo}
- Operation DeleteAddressBookRecord
{google, hotmail, plaxo, yahoo}
- Operation GetAddressBookRecordsById
{google, plaxo, yahoo}
- Operation GetAddressBookRecords
{facebook, google, hotmail, myspace, orkut, plaxo, yahoo}
- Operation GetFilteredAddressBookRecords
{}
- Operation GetVCardRecords
{google}
- Operation UpdateAddressBookRecord
{google, hotmail, plaxo, yahoo}
Feature blog
Feature friends
- Operation AcceptRequest
{facebook, myspace, orkut}
- Operation AddFriend
{facebook, myspace, orkut, twitter}
- Operation BecomeFollower
{twitter}
- Operation DenyRequest
{facebook, myspace, orkut}
- Operation FriendAction
{facebook, orkut}
- Operation FriendInfo
{}
- Operation GetFollowersList
{twitter}
- Operation GetFriendPic
{orkut}
- Operation GetFriendRequest
{facebook, myspace, orkut}
- Operation GetFriendsList
{facebook, myspace, orkut, twitter}
- Operation GetMyStatusHistory
{facebook, myspace, orkut, twitter}
- Operation GetMyStatus
{facebook, myspace, orkut, twitter}
- Operation GetProfile
{facebook, myspace, orkut, twitter}
- Operation RetwittStatus
{twitter}
- Operation SearchUsers
{facebook, myspace, orkut, twitter}
- Operation SetMyStatus
{facebook, myspace, orkut, twitter}
Feature messages
- Operation DeleteMessage
{facebook, google, hotmail, myspace, orkut, yahoo}
- Operation DeleteSWB
{facebook, myspace, orkut}
- Operation GetMessageHeaders
{facebook, google, hotmail, myspace, orkut, yahoo}
- Operation GetMessage
{facebook, google, hotmail, myspace, orkut, yahoo}
- Operation GetSWBHeaders
{facebook, myspace, orkut}
- Operation GetSWB
{facebook, myspace, orkut}
- Operation PokedBy
{facebook, orkut}
- Operation SendMessage
{facebook, google, hotmail, myspace, orkut, yahoo}
- Operation SendSWB
{facebook, myspace, orkut}
Feature multimedia
Feature newsfeed
- Operation Attachment
{}
- Operation DeleteNewsFeedComment
{facebook, myspace, myxer, orkut, twitter}
- Operation GetNewsFeedComments
{facebook, myspace, myxer, orkut, twitter}
- Operation GetNewsFeedsHeaders
{facebook, myspace, myxer, orkut, twitter}
- Operation NewsFeed
{}
- Operation SendNewsFeedComment
{facebook, myspace, myxer, orkut, twitter}
Feature notifications
Feature pictures
- Operation CreateAlbum
{facebook, google, myspace, yahoo}
- Operation DeleteAlbum
{google}
- Operation DeletePictureComment
{facebook, flickr, google, myspace, orkut, yahoo}
- Operation DeletePicture
{google}
- Operation EditPictureInfo
{google}
- Operation ExpandFriendPictures
{facebook, myspace, orkut}
- Operation ExpandPicture
{facebook, flickr, google, myspace, orkut, yahoo}
- Operation GetAlbumList_2
{facebook, google, myspace, yahoo}
- Operation GetAlbumList
{facebook, flickr, google, myspace, orkut, yahoo}
- Operation GetAlbumPicturesList
{google, myspace, yahoo}
- Operation GetPictureComment
{facebook, flickr, google, myspace, orkut, yahoo}
- Operation PictureUpload
{google, myspace, yahoo}
- Operation SendPictureComment
{facebook, flickr, google, myspace, orkut, yahoo}
- Operation ViewPictures_2
{}
- Operation ViewPictures
{facebook, flickr, google, myspace, orkut, yahoo}
Feature upload
- Operation CreateAlbum
{facebook, google, myspace, orkut, yahoo}
- Operation GetUploadAlbumList
{facebook, google, myspace, orkut, yahoo}
- Operation ImageUpload
{facebook, google, myspace, orkut, yahoo}
Feature video
- Operation GetVideoList
{}
- Operation GetVideo
{multimedia}
- Operation ShareVideo
{facebook, myspace, orkut}
- Operation ShowRokuVideo
{facebook, myspace, orb, youtube}
- Operation ShowVideo
{bliptv, facebook, myspace, orb, orkut, youtube}
Feature voice
Copyright 2008, 2010, MobileTribe Inc., All Rights Reserved.