コード例 #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));
        }
コード例 #2
0
 public Request(OAuthEndpoint endpoint, string code)
 {
     Code     = code;
     Endpoint = endpoint;
 }