You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Definition of the API methods and example API call.
Summary.
The API classes contain the API methods, each of which is an entry point to the application for API clients. Typically the methods will call one of the BSO classes that inherit the BaseTemplate classes.
Example.
public class Comment_API
{
public static dynamic Create(JSONRPC_API requestApi)
{
return new Comment_BSO_Create(requestApi).Create().Response;
}
public static dynamic Update(JSONRPC_API requestApi)
{
return new Comment_BSO_Update(requestApi).Update().Response;
}
public static dynamic Delete(JSONRPC_API requestApi)
{
return new Comment_BSO_Delete(requestApi).Delete().Response;
}
}
Example of an API call.
An API is called from an external client, using the namespace, API and method name along with any required parameters. An example is shown below: