Example #1
0
        //TODO: Store OAuth Token in config
        private async void AuthorizeApiClient()
        {
            _currentUser.ApiClient = new ApiClient(ImgurApiConfiguration.ClientId, ImgurApiConfiguration.ClientSecret);
            _endpoint = new OAuthEndpoint(_currentUser.ApiClient, _currentUser.HttpClient);
            var authorizationUrl = _endpoint.GetAuthorizationUrl(OAuthResponseType.Pin);

            await Launcher.LaunchUriAsync(new Uri(authorizationUrl));
        }
 public Request(OAuthEndpoint endpoint, string code)
 {
     Code     = code;
     Endpoint = endpoint;
 }