Hi
How we can create order using nimbus APi in .net c#
Thanks
Hi
How we can create order using nimbus APi in .net c#
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak TewatiaRank #143 · 15.9K reputationPosted Dec 19, 2022, 1:19 PM EST
Hi Ramco,
Use below to generate JWT Token.
var client = new RestClient("api.nimbuspost.com/v1/users/login"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/json"); var body = @"{" + "\n" + @" ""email"" : ""[email protected]""," + "\n" + @" ""password"" : ""Temp234""" + "\n" + @"}"; request.AddParameter("application/json", body, ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);then consume thé JWT Token .
request.AddHeader("Authorization", "Bearer " + response.Data);Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Dec 19, 2022, 10:41 PM EST
Hi
It is giving message IrstRespponse does not contain a definition for Data
Thanks