Scoped OAuth APIs

OAuth supports application scoping by providing access to all OAuth methods in the available OAuth classes using the sn_auth namespace identifier.

For example, the following code accesses the requestToken:

var oAuthClient = new sn_auth.GlideOAuthClient( );
var tokenResponse = oAuthClient.requestTokenByRequest('TestClient',text );

In a global script omit the sn_auth namespace identifier.