AfterMarket
[ class tree: AfterMarket ] [ index: AfterMarket ] [ all elements ]

Class: API

Source Location: /API.class.php

Class API

Class Overview

Common API methods for AfterMarket and DomainManager

Located in /API.class.php [line 16]



		
		
		
		

Methods

[ Top ]
Descendants
Child Class Description
AfterMarket The main AfterMarket SOAP API class.
DomainManager The main DomainManager SOAP API class.

[ Top ]
Constant Summary
MAXIMUM_DAILY_OPERATIONS   Maximum number of API operations allowed in one day.
MAXIMUM_OPEN_SESSIONS   Maximum active login sessions
MAXIMUM_PAGE_SIZE   Maximum page size for pagination

[ Top ]
Method Summary
boolean   checkMyFunds()   Check my account balance
int   getCurrentTime()   Returns current time as a Unix timestamp.
float   getMyBalance()   Returns current balance on the account.
string   getMyCurrency()   Returns the account currency.
string   getMyUserId()   Returns the identifier of the logged-in user.
boolean   keepAlive()   Null function - does nothing.
string   login()   Creates a new session for specified user, returns session authorization code.
boolean   logout()   Closes user session

[ Top ]
Methods
checkMyFunds  [line 185]

  boolean checkMyFunds( [string $email = null], [string $key = null], double $amount, string $currency, int 4  )

Check my account balance

Parameters:
int   4:  Member ID
string   $email:  SOAP-API auth email
string   $key:  SOAP-API auth session code
double   $amount:  Amount of funds to check
string   $currency:  Currency of input funds

API Tags:
Return:  True if has sufficent funds
Access:  public


Redefined in descendants as:

[ Top ]
getCurrentTime  [line 131]

  int getCurrentTime( string $email, string $key  )

Returns current time as a Unix timestamp.

Parameters:
string   $email:  User email
string   $key:  User authorization code

API Tags:
Return:  Current timestamp
Access:  public


Redefined in descendants as:

[ Top ]
getMyBalance  [line 155]

  float getMyBalance( string $email, string $key  )

Returns current balance on the account.

Parameters:
string   $email:  User email
string   $key:  User authorization code

API Tags:
Return:  Account balance
Access:  public


Redefined in descendants as:

[ Top ]
getMyCurrency  [line 168]

  string getMyCurrency( string $email, string $key  )

Returns the account currency.

Parameters:
string   $email:  User email
string   $key:  User authorization code

API Tags:
Return:  Account currency
Access:  public


Redefined in descendants as:

[ Top ]
getMyUserId  [line 143]

  string getMyUserId( string $email, string $key  )

Returns the identifier of the logged-in user.

Parameters:
string   $email:  User email
string   $key:  User authorization code

API Tags:
Return:  User identifier
Access:  public


Redefined in descendants as:

[ Top ]
keepAlive  [line 119]

  boolean keepAlive( string $email, string $key  )

Null function - does nothing.

This function can be used as a "keep alive" mechanism to prevent the authentication session from expiring.

Parameters:
string   $email:  User email
string   $key:  User authorization code

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
login  [line 43]

  string login( string $email, string $password, [string $lang = "pl"]  )

Creates a new session for specified user, returns session authorization code.

This function is used to open an authenticated API session. Upon succesful execution, an API authorization code is returned, which must be used in all subsequent API calls.

Parameters:
string   $email:  User email
string   $password:  User password
string   $lang:  Session language

API Tags:
Return:  Authorization code
Access:  public

Information Tags:
Throws:  Exceptions: 10002, 10004, 10006 (see ErrorCodesDM.pkg)

Redefined in descendants as:

[ Top ]
logout  [line 102]

  boolean logout( string $email, string $key  )

Closes user session

This function terminates the authentication session created by the login() function.

Parameters:
string   $email:  User email
string   $key:  User authorization code

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
Constants
MAXIMUM_DAILY_OPERATIONS = 10000 [line 30]

Maximum number of API operations allowed in one day.


[ Top ]
MAXIMUM_OPEN_SESSIONS = 10 [line 26]

Maximum active login sessions


[ Top ]
MAXIMUM_PAGE_SIZE = 1000000000 [line 21]

Maximum page size for pagination


[ Top ]

Documentation generated on Thu, 18 Aug 2011 10:03:44 +0200 by phpDocumentor 1.4.3