These instructions will describe how to connect and interact with the RLOGX API. There are many ways to tap into Research Logix data within your account using various programming languages (PHP, Python, Node.js, Java, etc.).
Prerequisites
Before being able to start interacting with Research Logix's API, you will need to do the following:
- Have established a Research Logix account with API access
- Have managed data within the Research Logix account
- Create an API Key
Connecting to the RLOGX API
Build an API call
Your API call must have the following components:
- A host. The host for RLOGX API is always
https://api.rlogx.com/v2/
- Authorization. Your API Key and Key Secret must be included in the authorization header.
- Service Call. You will need to tell Research Logix which method you would like to call.
We are currently working on several standard API Service Calls to get you started with interacting with your data. If you are looking for a specific feed, please contact us to set up a consultation.
Connect to the API
Below is an example of how to connect to the RLOGX API using PHP. Please use this as a guide to make your own calls.
// THE API URL $theUrl = "https://api.rlogx.com/v2/"; // SET THE PARAMETERS $apikey = {API KEY HERE}; $keySecret = {KEY SECRET HERE}; $serviceCall = {NAME OF THE SERVICE CALL/METHOD}; $serviceParams = {OPTIONAL PARAMETERS}; // MERGE PARAMS TOGETHER $params = [ "apiKey" => $apikey, "keySecret" => $keySecret, "serviceCall" => $serviceCall, "serviceParams" => $serviceParams ]; // INIT THE CURL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $theUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$params); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, FALSE); // SET THE RESPONSE $response = curl_exec($ch); // CLOSE CURL curl_close($ch);
Return and Interact with the Results
Results from the API Call will be returned in JSON format.
[ { "field" : "value", "field" : "value", "field" : "value", "field" : "value", "field" : "value", "field" : "value" }, { "field" : "value", "field" : "value", "field" : "value", "field" : "value", "field" : "value", "field" : "value" }, { "field" : "value", "field" : "value", "field" : "value", "field" : "value", "field" : "value", "field" : "value" } ]
Looking for Help?
Save time and feel confident you are set up for long-term success with RLOGX API Integration. Our experts will work as an extension of your team to ensure your program is correctly set up and delivering value for your business.
Contact us for details.