Skip to main content

TURL_SetAuthCredentials (function reference)

By October 1, 2021October 13th, 2021Online Help, Troi URL plug-in
Troi URL Plug-in > Functions reference > TURL_SetAuthCredentials
Troi URL Plug-in for FileMaker Pro

TURL_SetAuthCredentials

Sets the Consumer Key and Consumer Secret for an OAuth authorization.

SyntaxFunction badge

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 functionsFunction badge

TURL_GetAuthorizationURL
TURL_SendAuthorizationPIN

Related topics

Troi URL Plug-in online help (overview)


Online Help Page for Troi URL Plug-in for 16 to 19 –> TURL_SetAuthCredentials (urlp4420) 2021-1013 16:33:31