Questions tagged [hammock]

Hammock is a C# HTTP API client for consuming REST web services.

Hammock is an HTTP API library for .NET that simplifies consuming and wrapping RESTful services. You can find more information and its source at its GitHub page.

Installation

Hammock can most easily be installed through its NuGet package.

Install-Package Hammock 
46 questions
1
vote
0 answers

reading Twitter replies windows phone 8 app

I am relatively new to windows phone app development. I am building a twitter based application and trying to read replies to a specific tweet.Been trying to do it hard without any luck :( i am using hammock api. a discussion at this link…
Fremzy
  • 290
  • 2
  • 12
1
vote
1 answer

CallBack of Function not reached

I have a MVVVM app with a view model that uses Hammock . I call my Get2 function in the code behind my main page like this: private void List2_SelectionChanged_1(object sender, SelectionChangedEventArgs e) { if (List2.SelectedItem !=…
user2505650
  • 1,293
  • 6
  • 20
  • 38
1
vote
0 answers

How to post comment in Linkedin using Hammock or RestSharp library?

I could get all the posts and comments from LinkedIn but I am unable to add post comment I tried with Hammock and RestSharp library still I get an error Could not parse message document or Unexpected file end nullorUnauthentication scheme` This…
user2500094
  • 1,033
  • 6
  • 23
  • 42
1
vote
1 answer

How to use FRED Rest service with c#

I try to use FRED with Hammock to use the provided REST service. unfortunately I have no idea how to use it. what I did so far: string url = "http://wit.istc.cnr.it/stlab-tools/fred/api"; Hammock.RestClient client = new…
tro
  • 914
  • 2
  • 10
  • 23
1
vote
0 answers

Post Status in LinkedIn

I saw one artcle how to share our status in LinkedIn using c#. I follow those steps and the code I am using is following... For this I am using Hammock library. OAuthCredentials credentials = new OAuthCredentials(); credentials.Type…
Gowri
  • 209
  • 1
  • 4
  • 12
1
vote
1 answer

NullReferenceException-> Hammock.WindowsPhone.dll! Hammock.Silverlight.Compat.GzipHttpWebResponse.GetResponseStream()

I want to use Twitter in my app and i am using Twitter using Hammock Windows DLL,SO when i create the rest client like this private void GetTwitterToken() { var credentials = new OAuthCredentials { Type = OAuthType.RequestToken, …
Rakesh
  • 14,997
  • 13
  • 42
  • 62
0
votes
1 answer

Does Hammock cache requests?

I'm using Hammock in a Windows Phone app to request data from a REST service. I have a photo album page that shows a list of thumbnails. On this page, I have a button to upload a photo to the service. After a success response is received I'm calling…
earthling
  • 5,084
  • 9
  • 46
  • 90
0
votes
1 answer

How To: Fetch profile information using hammock with linkedin oauth

How do I get profile information of the authorized user, using Hammock https://github.com/danielcrenna/hammock This is the call to get the profile default profile information https://api.linkedin.com/v1/people/~ So far I've been unsuccessful, sample…
Ken
  • 59
  • 3
0
votes
1 answer

Asserting Hammock RestRequest parameters with Rhino Mocks

Scenario: Validate that my class issues a RestRequest with the provided IRestclient where certain Parameters are set on the request. public class MyClass { private readonly IRestClient _client; public MyClass(IRestClient client) { …
Simon Söderman
  • 335
  • 1
  • 7
0
votes
2 answers

WCF Web API, Hammock and WP7 Woes

Facing an interesting issue when I am using WCF Web API with Hammock and WP7. As you know, WCF Web API allows you to change the response type based on what you specify in the Accept header. For e.g. if you send Accept:application/json, the response…
Anup Marwadi
  • 2,517
  • 4
  • 25
  • 42
0
votes
1 answer

Working with Hammock and AgFx for Windows phone 7 app

Sorry if the question I am asking makes nonsense as I am really new to this. :( I have a project which is already using Hammock for oAuth (version 1.0) authentication. And then I saw Shawn Burke's awesome data caching framework AgFx and I really…
Justin XL
  • 38,763
  • 7
  • 88
  • 133
0
votes
1 answer

How do I make Hammock issue an HTTP GET

I have a Silverlight 4.0 application that is making RESTful calls to an MVC3 application using the Hammock API on the client to issue the RESTful service codes. The problem is that whether the request.Method is set to WebMethod.Get or…
Jim Reineri
  • 2,830
  • 3
  • 31
  • 32
0
votes
1 answer

Scala - how to get data from IO[HttpResponse] in Hammock?

I have a simple methods: def retrieveRepositories(url: String, params: String): IO[HttpResponse] = Hammock.getWithOpts(uri"$url", createOpts).exec[IO] Which is a http client. and json decoder: implicit def decodeResponseEntity(response:…
Developus
  • 1,400
  • 2
  • 14
  • 50
0
votes
1 answer

Scala, Hammock - retrieve http response headers and convert JSON to custom object

I have created a simple program which use Hammock(https://github.com/pepegar/hammock) and now I would like to get response from github API with reposne's headers. I created a code like this: object GitHttpClient extends App { implicit val decoder…
Developus
  • 1,400
  • 2
  • 14
  • 50
0
votes
1 answer

Not getting Profile Pic and Email address from linkedin api in MVc4

Here is my code please let me know why am not able to get emailid and profile pic. public class LinkedInController : Controller { public ActionResult index() { return AuthenticateToLinkedIn(); } static string token_secret =…
CRESOL
  • 1
  • 1