Class OAuthClient
OAuthClient provides methods to authenticate a user and retreive an auth token.
Namespace: GroupMeClientApi
Assembly: GroupMeClientApi.dll
Syntax
public class OAuthClient : object
Constructors
| Improve this Doc View SourceOAuthClient(String, String)
Initializes a new instance of the OAuthClient class.
Declaration
public OAuthClient(string clientName, string clientApiId)
Parameters
| Type | Name | Description |
|---|---|---|
| String | clientName | The application name to display on the success webpage. |
| String | clientApiId | The application identifer assigned by GroupMe. |
Properties
| Improve this Doc View SourceGroupMeOAuthUrl
Gets the URL where clients should navigate to begin obtaining an OAuth Token.
Declaration
public string GroupMeOAuthUrl { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceGetAuthToken()
Waits for the user to complete the OAuth login online and returns an access token if successful.
Declaration
public Task<string> GetAuthToken()
Returns
| Type | Description |
|---|---|
| Task<String> | A GroupMe API access token. |
Stop()
Shuts down the OAuth server.
Declaration
public void Stop()