Method: test

This methods test a connection with the API server.

Authentication

This method does not require authentication.

HTTP method

This method is called with HTTP method GET.

Arguments

This method does not need arguments.

Returned Values

Element (path) Name Type Description
/ text array SUCCESS

Example Query

	GET http://testapi.wannaprint.com/Rest/1/[API Key]/api/test/

PHP call of method:
	<?php
		$api_items = $apicaller->sendRequest(array(
					'controller' => 'api',
					'action' =>  'test'
					)); 
		foreach($api_items->text as $text)
		{
			echo $text;
		}
	?>
   			

Example Response

	{
		"text":["SUCCESS"]
	}
   			

Error Codes

001: Wrong API Key
The API key is wrong or missing.
002: Failed to parse request
The request could not be parsed.
011: Controller is invalid.
The controller passed is not valid.
031: Invalid Method
This method does not exist in the method list.