• Home
  • API Documentation

Class OAuthClient

OAuthClient provides methods to authenticate a user and retreive an auth token.

Inheritance
Object
OAuthClient
Namespace: GroupMeClientApi
Assembly: GroupMeClientApi.dll
Syntax
public class OAuthClient : object

Constructors

| Improve this Doc View Source

OAuthClient(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 Source

GroupMeOAuthUrl

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 Source

GetAuthToken()

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.

| Improve this Doc View Source

Stop()

Shuts down the OAuth server.

Declaration
public void Stop()
  • Edit on GitHub
  • View on GitHub
Back to top Generated by DocFX