wollte mich mal ein bisschen mit der SC API rumspielen...
Bin nun soweit das ich autorisiert bin.
PHP Code:
public static bool login(string strUserName, string strUserPassword)
{
string strTokenPostData;
userName = strUserName;
userPassword = strUserPassword;
strTokenPostData = "client_id=" + OAuthClientID
+ "&client_secret=" + OAuthClientSecret
+ "&grant_type=password&username=" + userName
+ "&password=" + userPassword;
OAuthAccessToken = pPost("https://api.soundcloud.com/oauth2/token", strTokenPostData);
OAuthAccessToken = GetBetween(OAuthAccessToken, "{\"access_token\":\"", "\",\"expires_in");
if(OAuthAccessToken.Length > 0)
{
return true;
}
else { return false; }
}
Wie komme ich von da jetzt auf "mein profil" zb.?
Hoffe ihr könnt mir helfen.






