Set Account for API calls
This method will set the account to be used for other API calls.
$account = WPCP_ONEDRIVE_API::set_account_by_id('8c9bacda0-d8d8-4b22-b634-7b5281687575');
// Username
$account->get_name();
// Primary emailaddress
$account->get_email();
// Profile image
$account->get_image();
// Kind of account
$account->get_type();
// Storage available & used.
$account->get_storage_info();
$account = WPCP_GDRIVE_API::set_account_by_id('201096615285735764133');
// Username
$account->get_name();
// Primary emailaddress
$account->get_email();
// Profile image
$account->get_image();
// Kind of account
$account->get_type();
// Storage available & used.
$account->get_storage_info();
$account = WPCP_DROPBOX_API::set_account_by_id('dbid:AADSy6JxzbgqCs4A43CAAAfO9xvZwpcsLU');
// Username
$account->get_name();
// Primary emailaddress
$account->get_email();
// Profile image
$account->get_image();
// Kind of account
$account->get_type();
// Storage available & used.
$account->get_storage_info();
$account = WPCP_BOX_API::set_account_by_id('29232154182');
// Username
$account->get_name();
// Primary emailaddress
$account->get_email();
// Profile image
$account->get_image();
// Kind of account
$account->get_type();
// Storage available & used.
$account->get_storage_info();