2013-02-25

Allegro.pl WebApi for .Net

I just published my open source project: AllegroWebApi for .Net. - it really simplifies usage of Allegro.pl web api.
Project is available at https://code.google.com/p/allegro-web-api/
Here is sample code:

 // Dont forget about usings!  
 uses AllegroWebAPI;  
 // This is main class  
 var api = new AllegroClient("YOUR API KEY HERE");  
 // Some functions needs your login/password to work properly  
 api.Login("YOUR ALLEGRO LOGIN", "YOUR ALLEGRO PASSWORD");  
 // Get my data   
 MyAllegro my = new MyAllegro(api);        
 Console.WriteLine(my.MyData.Email);  
 // Get user Id by user login  
 long uid = api.GetUser("ja-biel").Id;  
 // Retrieve user feedback  
 Feedback feedback = new Feedback(api);  
 foreach (var qq in feedback.GetFeedback(uid, CommentTypeAll.All))  
 {  
   Console.WriteLine(qq.fDesc);  
 }  

Hope someone like it.