I'm trying to make a desktop app with C#. I have the following but when I call auth.UpdateCredentials() it fails with "Unknown error". I changed the numbers of the id, secret, and token. These are not the real values. I guess the reason I'm showing some values here is because in the source code it says token, but when I got my information it was called API Key. Just wanted to make sure they were the same thing.
CODE
// Enter your application ID here.
String appid = "MWMIti5c";
// Enter your shared secret here.
String secret = "bew4c13cd1c88ae3e0h4153524d1ce90h0d332bw";
// Enter the user token here.
String token = "yj0yJmk1YWFuRWVTdzFKUzVWJmQ9WVdrOVRWZEWTWFJwTldNbWNYbzlNAFl3TlRjek5UZy0tJnM9
Y29uc3VtZZWNyZXQmeD1jMA--";
// Get the auth credentials. Create the Yahoo.Authentication object with the
// application ID and secret from the BBAuth signup process.
Yahoo.Authentication auth = new Yahoo.Authentication(appid, secret);
// Set the user token.
auth.Token = token;
// Update the credentials. This will fetch a new WSSID and a "Y" cookie for
// the user.
try
{
auth.UpdateCredentials();
}
catch (Exception e)
{
}