Affichage des articles dont le libellé est technique. Afficher tous les articles
Affichage des articles dont le libellé est technique. Afficher tous les articles

dimanche, août 26, 2007

.NET API for Flickr

Ireto ny étape tsy maintsy arahina rehefa manao authentification amin'ny Flickr miaraka @ API .NET. Raha tsy manao an'ireo indrindra ilay manokatra ny url dia mahazo invalid token (108) :
....


string apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
string sharedSecret = "xxxxxxxxxxxxxxx";

// get frob
Flickr flickr = new Flickr(apiKey, sharedSecret);
string frob = flickr.AuthGetFrob();

// redirect to url
string url = flickr.AuthCalcUrl(frob, AuthLevel.Write);
System.Diagnostics.Process.Start(url);

// authentication using frob and getToken
Auth auth = flickr.AuthGetToken(frob);
.....