![]() |
Fledge
An open source edge computing platform for industrial users
|
#include <ocs.h>
Public Member Functions | |
OCS (bool adh) | |
string | retrieveToken (const string &clientId, const string &clientSecret) |
Calls the OCS API to retrieve the authentication token related to the the clientId and clientSecret. More... | |
string | extractToken (const string &response) |
Extracts the OCS token from the JSON returned by the OCS API. More... | |
The OCS class.
std::string OCS::extractToken | ( | const string & | response | ) |
std::string OCS::retrieveToken | ( | const string & | clientId, |
const string & | clientSecret | ||
) |
Calls the OCS API to retrieve the authentication token related to the the clientId and clientSecret.
clientId | Client Id code assigned by OCS using its GUI to the specific connection |
clientSecret | Client Secret code assigned by OCS using its gui to the specific connection |