The Implicit grant type doesn’t require any sensitive information. If you’re going to share a script with other people, it would be easiest to use this grant type. Note, however, that because sensitive information isn’t required, services are less likely to implement this flow.
The following code snippet creates an OAuth token using the Implicit grant. This requires Redirect URL().
token = New OAuth2 Token(
User( "Implicit Flow"),
Client ID( "123abc" ),
Redirect URL( "https://www.getpostman.com/oauth2/callback") ,
Token URL( "https://example.com/services/oauth2/token" )
);