Free TMSCode API

Write the first paragraph of your article here.

Methods
There is only one method for this API service which is : /tmscode

/tmscode
Requiring an API key along with other necessary information such as a URL, description, and country; it returns a tmscode.

HTTP method: GET, POST

URI: http://www.tmsfactory.com/api/tmscode/

Returns: shortcode (e.g. 687 98 41)

HTTP GET
http://www.tmsfactory.com/api/tmscode/?api_key=abcdefg123456789&src_type=blog&category=12&country=PH&zipcode=6000&description=TMS%20Factory%20Official%20Blog&url=http%3A%2F%2Fwww.tmsfactory.com%2Fblog%2 In this example we get a TMS Code for the blog: http://www.tmsfactory.com/blog/ using HTTP GET with the following details:


 * api_key="abcdefg123456789" API key unique to your TMS Factory account. If you don't have one yet get it here.
 * src_type="blog" The mobile content is a blog.


 * category=12 "technology" (we use id number 12).


 * country=PH "Philippines" (country id/code: PH).


 * description=TMS%20Factory%20Official%20Blog "TMS Factory Official Blog" (url encoded).


 * url=http%3A%2F%2Fwww.tmsfactory.com%2Fblog%2F "http://www.tmsfactory.com/blog/" - The url of my blog (url encoded).

The response returned by the server would be: [error_code]=>E008 [error]=>Authentication failed. API key is invalid. Our example returns an error because the API key we used does not exist (see the Error Codes documentation for a full list of errors and their corresponding code). A successful result would look something like... [shortcode]=>687 98 41 Remember to URL encode parameter values when using this method (RFC 1738 standards). Visit the API Response page for information on other response formats.

HTTP POST
This method should be used when uploading videos. Here is a sample code for a simple form example:   API Key:  Description:  Category: Men Women Travel Technology Country: China France Hong Kong Philippines Zipcode:   Video:  Video Title:  