21
px06
7y

Just a reminder for anyone that wants to use the devRant API for .NET. I made a C# wrapper that people might find useful: https://github.com/redrails/...

Not sure why it's not on the devRant projects page but feel free to use it and contribute 🙂 🙂

Comments
  • 2
    Open an issue on github , thats what @dfox always says usually iirc, its easier that way to do it, kind of like a todo list.
  • 1
    Great job man! Do you plan to add sign in feature?
  • 1
    Is there a reason the client class is named in camelCase instead of PascalCase which is standard in C#? Also why use WebClient?? :D
  • 0
    @juunas What do you intend to use for an API request?
  • 0
    @juunas what options do I have? From what I can see the main libraries people use are WebClient, HttpClient or HttpWebRequest. WebClient is only a wrapper around HttpWebRequest so I don't see anything wrong with using it, I'm not sure what the best practices are for API calls with C#.
  • 1
    @Mitiko HttpClient, it removes a bunch of the overhead and fully supports the async await pattern.
  • 0
    @juunas I may have a look into it today and see if it's any good. Alternatively you could also fork and contribute if you wish 😊
Add Comment