Tiny.RestClient | Simpliest Fluent REST client for .NET | HTTP Client library
kandi X-RAY | Tiny.RestClient Summary
kandi X-RAY | Tiny.RestClient Summary
Tiny.RestClient facilitates the dialog between your API and your application. It hides all the complexity of communication, deserialisation ...
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Tiny.RestClient
Tiny.RestClient Key Features
Tiny.RestClient Examples and Code Snippets
Community Discussions
Trending Discussions on Tiny.RestClient
QUESTION
I'm trying to write a call to the Freshdesk API using either Flurl or RestSharp library.
The API call I'm trying to write is Creating a Ticket: https://developers.freshdesk.com/api/#create_ticket
An example of cURL:
curl -v -u yourapikey:X -F "attachments[]=@/path/to/attachment1.ext" -F "attachments[]=@/path/to/attachment2.ext" -F "email=example@example.com" -F "subject=Ticket Title" -F "description=this is a sample ticket" -X POST 'https://domain.freshdesk.com/api/v2/tickets'
Note params are passed by -F
(i.e. --form
) flag.
With the following code calling Flurl:
...ANSWER
Answered 2022-Feb-12 at 09:26It's the FreshDesk API issue. They want, for some reason, for multipart form-data parameter names to be enclosed in quotation marks. It's not a requirement per HTTP standards. RestSharp and Flurl use MultipartFormDataContent
, and it adds uses parameter names as provided.
Following up on your issue, I added this property to RestRequest
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Tiny.RestClient
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page