public Uri CreateRequestUri() { try { var akm = _aks.GetAPIKeys(); var dict = new Dictionary <string, object>() { { "scope", "non-expiring" }, { "client_id", akm.SoundCloudClientId }, { "redirect_uri", REDIRECT_URI }, { "response_type", "code" }, }; var sb = new StringBuilder(); sb.Append(SOUNDCLOUD_URL); sb.Append(WebHelper.ToQueryString(dict)); Uri uri; Uri.TryCreate(sb.ToString(), UriKind.Absolute, out uri); return(uri); } catch (Exception ex) { Log.Error(ex.Message, ex); return(null); } }
public void Authenticate() { var apiKeys = _aks.GetAPIKeys(); var fc = new FacebookClient(); fc.AppId = apiKeys.FacebookClientId; fc.AppSecret = apiKeys.FacebookClientSecret; //https://www.facebook.com/connect/login_success.html }
public Uri CreateRequestUri() { try { Uri uri; Uri.TryCreate(string.Format(YOUTUBE_URL, _aks.GetAPIKeys().YouTubeClientId), UriKind.Absolute, out uri); return(uri); } catch (Exception ex) { Log.Error(ex.Message, ex); return(null); } }