Online Android and IPhone Application builder in English

Your profile
Log out
Online Android and IPhone Application builder in English
Online Android and IPhone Application builder in French
Online Android and IPhone Application builder in Chinese
Online Android and IPhone Application builder in Danish
Online Android and IPhone Application builder in Swedish
alt_image_de_flag
Make me Droid

Advertisement
API access
The Make me Droid API service lets you communicate with your account and applications from an external location. As instance, you can send push messages, list your application screens or read the latest messages your application has received, directly from your own website.

This API is subject to frequent changes, so keep in touch with the updates for new features and parameters changes.
Setup for using the API service
From your application mobile services panel, you have to generate an API key that you will use when calling the API services. That key must be kept secret otherwise, one would be able to manage your application on your behalf, and you probably don't want this!
API access point
REQUESTS

Every API call start with the following URL:

http://api.makemedroid.com/call.php

Every parameter is passed using the HTTP GET method.

PARAMETERDESCRIPTIONOPTIONALEXAMPLE
appThe application keyNo"keyABCDEF"
keyThe application API keyNo"eluwObBFkEu7teyOQj8"
vThe API versionNo1
apiThe API function to callNo"sendpush"

REQUEST EXAMPLE

http://api.makemedroid.com/call.php?app=keyABCDEF&key=eluwObBFkEu7teyOQj8&v=1&api=sendpush&...

RESPONSES

The API outputs JSON encoded information.

PARAMETERDESCRIPTIONEXAMPLE
apiThe initiating API call"sendpush"
resultResult code for this request"success", or an error code otherwise.
appnameThe application name"My application"

RESPONSE EXAMPLE

{"api":"sendpush","creditsused":0,"remainingcredits":1183,"result":"success"}
Sending PUSH messages
IMPORTANT NOTE: Your account credits will be automatically spent when using this feature.

REQUEST

PARAMETERDESCRIPTIONOPTIONALEXAMPLE
apiThe API function to callNosendpush
p_titlePUSH message titleNo"Welcome"
p_contentPUSH message contentNo"New stuff in the application, touch to read!"
p_showscreenScreen to open on touchYes"My News Screen"

RESPONSE

PARAMETERDESCRIPTIONEXAMPLE
creditsusedNumber of credits used to send this message"20"
remainingcreditsRemaining credits on your account after this call"2300"

SAMPLE CODE

PHP Sample code (with HTML user interface)
Sending daily news
IMPORTANT NOTE: Your account credits will be automatically spent when using this feature.

REQUEST

PARAMETERDESCRIPTIONOPTIONALEXAMPLE
apiThe API function to callNosenddailynews
p_titleNews titleNo"Today news!"
p_messageNews contentNo"Here are the news for today: ..."
p_expdayDay of news expiration date, 2 digitsNo"05"
p_expmonthDay of news expiration date, 2 digitsNo"10"
p_expyearDay of news expiration date, 4 digitsNo"2013"
p_urlExternal URL attached to this newsYes"http://www.yoursite.com"

RESPONSE

PARAMETERDESCRIPTIONEXAMPLE
messagesusedNumber of messages currently used on your subscription"20"
remainingmessagesRemaining messages on your subscription after this call"2300"

SAMPLE CODE

PHP Sample code (with HTML user interface)
Getting application/account information
REQUEST

PARAMETERDESCRIPTIONOPTIONALEXAMPLE
apiThe API function to callNogetappinfo

RESPONSE

PARAMETERDESCRIPTIONEXAMPLE
creationdateCreation date (UNIX timestamp)"1314979152"
lastsavedateLast save date (UNIX timestamp)"1364292440"
contentsizeContent size (bytes)"1875850"
packagenamePackage name"a.b.c"
androidsignedversionAndroid version for "published" APKs"4"
account -> nameAccount user name"Firstname Lastname"
account -> loginAccount login"you@email.com"
account -> contactemailEmail used to receive emails"contact@email.com"
account -> cdateAccount creation date (UNIX timestamp)"1303682400"
account -> languageAccount language"en" (english)
account -> creditsRemaining credits"2350"
Listing chat messages
REQUEST

PARAMETERDESCRIPTIONOPTIONALEXAMPLE
apiThe API function to callNolistchatmsg
p_screenName of screen in app that shows the chatNo"My chat screen"

RESPONSE

PARAMETERDESCRIPTIONEXAMPLE
totalmessagesTotal number of returned messages"8"
messages -> titleMessage title"Hello"
messages -> messageMessage content"I'm new to this application!"
messages -> timestampUNIX timestamp at which message was posted"1360237617"
messages -> pseudoUser pseudo, if set"John"
messages -> fromadminWhether the message was posted by you or by a user"1"

SAMPLE CODE

PHP Sample code (with HTML user interface)
More information
If PHP file_get_contents() is not enabled

In case file_get_contents() is not allowed to open URLs on your website, you can try to use cURL instead:

	<?php
	    $curlSession = curl_init();
	    curl_setopt($curlSession, CURLOPT_URL, 'THE_API_URL');
	    curl_setopt($curlSession, CURLOPT_BINARYTRANSFER, true);
	    curl_setopt($curlSession, CURLOPT_RETURNTRANSFER, true);
	
	    $jsonData = json_decode(curl_exec($curlSession));
	    curl_close($curlSession);
	?>