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 […]

Using PeerBlock can Interfere with REST API’s running on AWS Lambda

A Chilkat customer uses Chilkat HTTP to send REST API requests to a popular IP Geolocation service.   The REST API requests worked a few times, but then started failing with this error information in Http.LastErrorText: ConnectFailReason: Connection rejected A few possible causes for a connection being rejected are: – A firewall (software or hardware), such as Windows Firewall, is blocking […]

GMail SMTP

Question: I am trying to send email via GMail using the SMTP protocol.  I am sending the correct GMail login credentials, but I get this error: … smtpAuthenticate: login_method: LOGIN auth_login: smtpSendGet2: sendCmdToSmtp: SmtpCmdSent: AUTH LOGIN –sendCmdToSmtp readSmtpResponse: SmtpCmdResp: 334 VXNlcm5hbWU6 –readSmtpResponse –smtpSendGet2 sendCmdToSmtp: SmtpCmdSent: *** –sendCmdToSmtp readSmtpResponse: SmtpCmdResp: 334 UGFzc3dvcmQ6 –readSmtpResponse sendCmdToSmtp: SmtpCmdSent: {PasswordOrCredentials} –sendCmdToSmtp readSmtpResponse: SmtpCmdResp: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsG […]

Use Chilkat for the *** REST API?

Question: Have you ever worked with Avalara Tax Software?  I need to write an interface between our application and Avalara.  Do you know if I could use the Chilkat REST API to write the interface? Answer: Yes, you can use Chilkat REST to call any REST API.   A good way to go about it is to see if the […]

Calling a REST POST API and Parsing JSON/XML Response

This blog post describes a general procedure for writing code that calls an HTTP/HTTPS POST REST API and parses the JSON or XML response. Step 1: Form the CURL Command A POST request in the form of a CURL command will look like this: curl -X POST https://test-api.service.hmrc.gov.uk/organisations/vat/123456789/returns \ -H “Accept: application/vnd.hmrc.1.0+json” \ -H “Content-Type: application/json” \ -H “Authorization: Bearer […]

Calling a REST GET API and Parsing JSON/XML Response

This blog post describes a general procedure for writing code that calls an HTTP/HTTPS GET REST API and parses the JSON or XML response. Step 1: Form the CURL Command A GET request in the form of a CURL command will look like this: curl -X GET https://test-api.service.hmrc.gov.uk/organisations/vat/123456789/obligations \ -H “Accept: application/vnd.hmrc.1.0+json”  \ -H “Authorization: Bearer hmrc_app_server_token” Some notes: Header […]