hammock

Hammock Package , Tweetsharp and C# Windows Phone 8

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 19:08:24
问题 I followed this link http://samjarawan.blogspot.co.uk/2010/09/building-real-windows-phone-7-twitter_18.html step by step and when I am running my app, I am getting an error i.e. "Error Calling Twitter". When I searched about it, I found that in this part of code var client = new RestClient { Authority = "https://api.twitter.com/oauth", Credentials = credentials, HasElevatedPermissions = true, SilverlightAcceptEncodingHeader = "gzip", DecompressionMethods = DecompressionMethods.GZip }; I need

Retrieve Linkedin email address

馋奶兔 提交于 2019-12-18 05:22:08
问题 I'm using the Hammock library and C# to get the basic profile and email address of user from linked in following post here . I've also followed these posts here and here However for the life of me I cannot get the email address of the linkedin user. Reading this linkedin post I got new created a new application to get new keys however still no luck. Went through this linkedin post but could not get it to work either I'm posting the code below but it's heavily lifted form the links I followed

Invalid cross-thread access in Silverlight app

浪尽此生 提交于 2019-12-07 06:02:56
问题 I am using the Hammock framework to make asyncronous service calls from a Silverlight application to Rest services. In the 'completed' callback I am updating an ObservableCollection that is bound to a combobox on the view. An 'Invalid cross-thread access' exception is being thrown in the 'OnPropertyChanged' event handler. Is this becasue Hammock is not executing the callback on the UI thread? If not, why not? That would seem to be functionality that the framework should handle. Am I missing

Deserializing JSON array into strongly typed .NET object

此生再无相见时 提交于 2019-11-27 13:26:05
When I can call the 3rd party api and get back a single class worth of data everything deserialises fine using this code TheUser me = jsonSerializer.Deserialize(response, typeof(TheUser)) as TheUser The problem comes when I try and deserialise JSON response content that is an array, such as { "data": [ { "name": "A Jones", "id": "500015763" }, { "name": "B Smith", "id": "504986213" }, { "name": "C Brown", "id": "509034361" } ] } I can only get the serialization to work if I use a custom wrapping class around the "data" member and that member needs to be of type List<object> . If it have them

Deserializing JSON array into strongly typed .NET object

穿精又带淫゛_ 提交于 2019-11-26 18:17:15
问题 When I can call the 3rd party api and get back a single class worth of data everything deserialises fine using this code TheUser me = jsonSerializer.Deserialize(response, typeof(TheUser)) as TheUser The problem comes when I try and deserialise JSON response content that is an array, such as { "data": [ { "name": "A Jones", "id": "500015763" }, { "name": "B Smith", "id": "504986213" }, { "name": "C Brown", "id": "509034361" } ] } I can only get the serialization to work if I use a custom