How to Implement a REST API Function
Question:
We are trying to interface with RingCentral to send faxes and they require us to upload the file and also send a JSON message at the same time – is there a function that can do this?
Answer:
The best way to solve such a problem is as follows:
1. Find the Developer Documentation for the REST API in question. In this case, you’re asking about RingCentral. Google “RingCentral Developer Documentation”.
2. Go to the API reference. In this case, the developer documentation is at https://developers.ringcentral.com/api-reference
3. Navigate to the API call you wish to implement.
4. Usually you’ll find a CURL statement showing the REST API call.
5. Copy the CURL statement. Go to Chilkat’s online tool to generate code from a CURL statement.
6. Generate the code.
Also, you’ll need to investigate how your REST API call is authenticated. It is usually OAuth2 authentication…