37signals Highrise.NET (C #) API

I am looking for a .NET wrapper (C #) for the 37signals HighRise REST API. Unfortunately, I could not find anything suitable. Has anyone developed something similar or have links to share?

+6
source share
5 answers

Use RestSharp - http://restsharp.org/

+3
source

As some have suggested, RestSharp is pretty easy to use with the HighRise API . At least one person suggested using xsd.exe , which I highly recommend, which will complicate things too much. Instead, create a POCO type using only the elements you want to get / set. Like this:

 namespace Highrise.Model { public class Person { [XmlElement("author-id")] public string AuthorId { get; set; } [XmlElement("background")] public string Background { get; set; } [XmlElement("first-name")] public string FirstName { get; set; } [XmlElement("last-name")] public string LastName { get; set; } [XmlElement("id")] public string Id { get; set; } } public class People : List<Person>{} } 

Then just use the RestSharp library as follows:

 // Setup our client: var client = new RestClient("https://yourhighrisename.highrisehq.com"); client.Authenticator = new HttpBasicAuthenticator("YOUR_API_KEY_HERE", "X"); // Create our request: var request = new RestRequest("/people.xml", Method.GET); // Execute our request with our client: RestResponse<People> response = (RestResponse<People>) client.Execute<People>(request); 
+4
source

I know that I am resurrecting an old question, but in case it helps someone who gets here from Google (I myself found this topic when searching for the same), I created a new Github repository for the .NET Highrise API shell.

+2
source

To clarify, while you can find some REST API wrapper libraries for Highrise, you'll probably be just as easy to use the general purpose REST API wrapper (for example, RestSharp noted above).

I am proposing another project that I am currently using to access Highrise through the REST API.

The library is called Hammock and is located here on github: https://github.com/danielcrenna/hammock

+1
source

I think you should try:

http://sdk.welovehighrise.com/

It works great in our applications.

0
source

Source: https://habr.com/ru/post/885833/


All Articles