public static string retriveMe(HttpRequestBase request) { /* check if logged in*/ /* need to pass in oauth ID */ string command = SoundCloudAPIConstants.SoundCloudCommands["Me"]; string parameters = "?oauth_token=" + CookieHandler.getCookie(request, "SoundCloudToken").Value; return(HttpUtil.HttpGet(command, parameters)); }
public static string retriveOAuthToken(HttpRequestBase request) { var parameters = "?client_id=" + _clientID + "&client_secret=" + _secretKey + "&redirect_uri=" + _redirectUrl + "grant_type=authorization_code" + "&code=" + CookieHandler.getCookie(request, "SoundCloudToken").Value; // decrypt token string return(HttpUtil.HttpPost("https://api.soundcloud.com/oauth2/token", parameters)); }