View Single Post
Old 03-04-2017, 05:10 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
@fob
There is a PHP script for the authentication the download is at the bottom of that contains zip file.


@cyberseo You need an affiliate ID and the token for that
I am going to post an example script in the zip now in the post below

If you don't have affiliate account access -- Monday (office is closed)

I can answer or get answers on any request/response issues you may have.
The parsing and HTML output is work for the Affiliate.

================
readme

PHP HTTP client for XloveCam.com
Version: 1.0
-------------

What Is This?
-------------

This library is a PHP HTTP client that makes it easy to send HTTP requests to XloveCam.com API.
It provides real time information about the models found on XloveCam.com in Json format so you
can build your own promotool.

Requirements
------------
The following are required to use this library:

- A functioning PHP 5.4 environment with HTTP (or HTTPS) access to the internet.
- Additionally, the PHP install must have CURL support available.
- On Debian & Ubuntu, you'll need the php5-curl package.
- On Windows, CURL should already be available, but you may need to enable
it in php.ini (uncomment 'extension=php_curl.dll').
- Some working knowledge of the PHP language.
- The API keys that are provided on the Json API XloveCash promotool page.
- serviceid / it's your affiliate id
- secret_key


How To Use It
-----------------------

1. Change the $serviceid and $secret_key from lib/XlovejsonApi.php with the keys
provided in the XloveCash promotool page .

class XloveJsonApi extends XloveJsonApiAbstract
{
/**
* one serviceid is provided (it's your affiliate id)
*/
protected $_serviceid = 'xxxxxxxxxxxxxxx';


/**
* one secret_key is provided in the documentation
*/
protected $_secret_key = 'xxxxxxxxxxxxxxx';



2. Access via HTTP the public_html/index.php where you can test all XloveCam.com API methods.



Comments / Suggestions
----------------------
We always welcome comments, suggestions, and constructive complaints. You can
find several ways to contact us at Contact Form .
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote