Getting started with the elggVoices API (part 4 – Putting it all together)

In yesterday’s article, we took a look at the server’s reply format. You now have all the information you need to construct the core of a library and start making server requests. Here is some sample PHP code for making POST and GET style queries. This library will let you make a query, and return […]

Marcus Povey

In yesterday’s article, we took a look at the server’s reply format. You now have all the information you need to construct the core of a library and start making server requests. Here is some sample PHP code for making POST and GET style queries. This library will let you make a query, and return […]

Getting started with the elggVoices API (part 3 – The reply)

On Friday we discussed how to construct an API request, today we will discuss how to handle the response that the server returns. Server replies The elggVoices server will respond with a result packet containing a number of fields. The format of this reply depends on the format requested. From the manual: ‘status’: The status […]

Marcus Povey

On Friday we discussed how to construct an API request, today we will discuss how to handle the response that the server returns. Server replies The elggVoices server will respond with a result packet containing a number of fields. The format of this reply depends on the format requested. From the manual: ‘status’: The status […]

Getting started with the elggVoices API (part 2 – The request)

HTTP Headers In addition to the method call, format and variables sent on the URL line (discussed in yesterday’s article), you are required to send some extra information in the headers of the outgoing HTTP request. From the API Documentation: X-Searunner-apikey Your public API key you were given when signing up for a developer account. […]

Marcus Povey

HTTP Headers In addition to the method call, format and variables sent on the URL line (discussed in yesterday’s article), you are required to send some extra information in the headers of the outgoing HTTP request. From the API Documentation: X-Searunner-apikey Your public API key you were given when signing up for a developer account. […]