The MapLarge SDK repo is hosted on GitHub. Visit to get connected!
MapLarge API Connector
The MapLarge API Connector (MapLargeConnector) is a convenience class that facilitates access of the MapLarge API. The class MapLargeConnector has been implemented in 4 languages: Python, Java, C#, and PHP. The main class MapLargeConnector is used to establish and manage a session with a MapLarge API server. This class exposes several methods for accessing functionality on the MapLarge server.

Methods
Constructor
The Constructor follows this basic pattern, with slight differences depending on language. It is overloaded to allow for passing of username/password or username/authtoken for authentication. /** * Constructor. Creates a connection to a MapLarge API server with a * username and token as credentials. * * @param urlApiServer * URL of API server. Must begin with valid protocol * (http/https). * @param username * Username to use for connection credentials. * @param token * Authentication token to use for connection credentials. */ MapLargeConnector(string urlApiServer, string username, int token) /** * Constructor. Creates a connection to a MapLarge API server with a * username and token as credentials. * * @param urlApiServer * URL of API server. Must begin with valid protocol * (http/https). * @param username * Username to use for connection credentials. * @param password * Authentication token to use for connection credentials. */ MapLargeConnector(string urlApiServer, string username, string password)
InvokeAPIRequest
Used to Invoke API requests over HTTP that can be handled sufficiently by GET requests. This would be for relatively short data, such as Account or Table Listings. Files can be uploaded, but only in the limited case of passing files by URL. Uploading of file data directly must use the POST method below.  /** * * @param actionname * Name of API action being called. * @param paramlist * Array of key value pairs. * @return API response, usually a JSON formatted string. Returns "ERROR" on * exception. */ string InvokeAPIRequest(string actionname, Dictionary<string, string=""> paramlist) </string,>
InvokeAPIRequestPost
Performs the same API Requests as the first method, but can handle sending and receiveing of large amounts of data as HTTP POST is used. This also allows for full featured Binary file uploads directly from your client application.  /** * * @param actionname * Name of API action being called. * @param kvp * Array of key value pairs. * @param filepaths * Array of files to attach to request. Use full file path. * @return API response, usually a JSON formatted string. Returns "ERROR" on * exception. */ string InvokeAPIRequestPost(string actionname, Dictionary<string, string=""> paramlist) /** * * @param actionname * Name of API action being called. * @param kvp * Array of key value pairs. * @param filepaths * Array of files to attach to request. Use full file path. * @return API response, usually a JSON formatted string. Returns "ERROR" on * exception. */ string InvokeAPIRequestPost(string actionname, Dictionary<string, string=""> paramlist, string[] filepaths) </string,></string,>
NO_WEB_CALLS
A property that when set to true causes the API to "simulate" functionality. HTTP calls will not actually occur and debug info about the call is returned from methods. Useful for debugging.  MapLargeConnector.NO_WEB_CALLS = true; string response = mlconnPassword.InvokeAPIRequest("CreateTableSynchronous", paramlist); //Outputs Debug info Console.WriteLine(response);
GetRemoteAuthToken
A convenience method to allow retrieval of the Auth Token -- a common use case among many users.  /** * * @param user Username to create authentication token for * @param password Password for supplied username * @param ipAddress IP address of the user for whom you want to build an authentication token * @return The authentication token in string form. */ string GetRemoteAuthToken(string user, string password, string ipAddress)
General Usage
General usage involves instantiation of the MapLargeConnector and subsequent calls to the server via the InvokeAPI methods.  //Authentication inforamtion string server = "<a href="http://server.maplarge.com/";">http://server.maplarge.com/";</a> string user = "<a href="mailto:user@ml.com">user@ml.com</a>"; string pass = "pw123456"; //HTTP Parameters Dictionary<string, string=""> paramlist = new Dictionary<string, string="">(); //CREATE MAPLARGE CONNECTION WITH USER / PASSWORD MapLargeConnector mlconnPassword = new MapLargeConnector(server, user, pass); //CREATE TABLE SYNCHRONOUSLY //Set parameters: account, tablename &amp; file URL paramlist.Add("account", "test"); paramlist.Add("tablename", "testJavaSdkTable"); paramlist.Add("fileurl", "<a href="http://www.domain.com/testfile.csv"">http://www.domain.com/testfile.csv"</a>); string response = mlconnPassword.InvokeAPIRequest("CreateTableSynchronous", paramlist); </string,></string,>
Language specific Usage
C# PHP JAVA PYTHON

For more examples: www.maplarge.com
MapLarge JS API Info