TURL_SetAuthCredentials |
Sets the Consumer Key and Consumer Secret for an OAuth authorization.
Syntax
TURL_SetAuthCredentials ( switches ; consumerKey ; consumerSecret )
Parameters
switches | this determines the behavior of the plug-in |
consumerKey | the consumer key of your solution |
consumerSecret | the consumer secret of your solution |
Returned Result
Data type returned
Error code
Result
The returned result is an error code. If the consumerKey and the consumerSecret have been set successfully the plug-in returns 0. An error always starts with 2 dollars, followed by the error code. You should always check for errors.
Returned error codes can be:
0 | no error | |
$$-50 | parameter error | check if your parameters are correct |
Other errors may be returned.
Originated in
Troi URL Plug-in 3.5
Compatibility
FileMaker Pro 16 to 19
Considerations
Use this function to set up an OAuth connection to a web service.
Setting these credentials makes it possible to work with more web services that use OAuth 1.x.
See the OAuthWebService example file for more information on the needed steps.
Example
TURL_SetAuthCredentials ( "-Unused" ; "CKVA0123456789" ; "CSABC123445566778" )
Related functions
TURL_GetAuthorizationURL |
TURL_SendAuthorizationPIN |
Related topics
Troi URL Plug-in online help (overview)