API Documentation (Beta)

fetch

Description

string fetch (string $url[, string $username[,string $password]])

fetch allows applications to get data from any URL. It also enables the user to supply authenication credentials for a secure transaction.

Parameters

url

This specifies the URL to invoked to fetch the data. It can contain query string. For e.g. http://foo.com/invoke.php?name1=value1&name2=value2 ..

username

This specifies the username that is required for the POST operation. This in conjuction with password is used to authenticate the operation.

password

This specifies the associated password.

Return Values

Response text returned by the URL. The maximum length of the return value can be 4K.