This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json.Linq; | |
namespace RaptorCaller | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
</head> | |
<body> | |
<div id="output"></div> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$moduleName =$_GET['moduleName']; | |
$numberOfRecommendations =$_GET['numberOfRecommendations']; | |
$apiKey ="[Your API Key Here]"; //API key can be found in the controlpanel | |
$customerId = "[Your Customer Id Here]"; //customerid can be found in the controlpanel | |
$raptorUrl ="http://api.raptorsmartadvisor.com/v1/". $customerId ."/" . $moduleName ."/". $numberOfRecommendations ."/" . $apiKey; | |
$timeOutInSeconds= 1.5; |