dotStudioPRO API Class
A Wordpress plugin that provides a class for accessing the dotstudioPRO API
by Matt Armstrong, dotstudioPRO · github.com/dotstudiopro/dotstudiopro-api · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dotstudiopro/dotstudiopro-api/archive/refs/heads/master.zipFrom the readme
BETA
This plugin is currently in beta. You can download it and play with it as much as you want. We are very active with updates so make sure to watch out for new versions of the plugin.
dotstudioPRO API Class
This class (dotstudioPROAPI) allows programmers to access our API without having to create the connections theirselves.
Installation
1. Create a dotstudioPRO account.
2. Once logged in, go to the User Account section and get your API key.
3. Install dotstudioPRO Wordpress Plugin from your Wordpress dashboard or unzip the plugin archive in the wp-content/plugins directory.
4. Activate the plugin through the Plugins menu in Wordpress.
5. Go to the dotstudioPRO left menu configuration page and fill in your API key.
6. Start using the provided class.
Instantiation
The API class must be instantiated via the following:
dotstudioPROAPI Methods
gettoken()
Used to get a new access token via the dotstudioPRO API
settoken($token)
$token String The access token
Set the access token in the class object
apinewtoken()
Get a new API token.
apitokencheck()
Check if we have an API access token, and it's current. If it isn't, get a new one.
getcountry()
Get the 2-letter cou