-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
32 lines (18 loc) · 1.05 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PHP VWS Samples using HTTP_Request2
Requires :
(PHP 5 >= 5.2.0, PECL json >= 1.2.0) for JSON support.
http://php.net/manual/en/book.json.php
HTTP_Request2
http://pear.php.net/package/HTTP_Request2/
Installation:
JSON encoding and decoding are supported natively for PHP versions 5.2+
Prior PHP versions can use the JSON extension here - http://pecl.php.net/package/json
HTTP_Request2 is a PEAR package that can be installed from a command line.
pear install HTTP_Request2
Pyrus Install
php pyrus.phar install pear/HTTP_Request2
Usage:
You will need to add our Cloud Database access and secret key to each sample, along with a target id for those queries requiring one.
After the keys have been added, you can execute the sample classes from the SampleSelector.php page, by loading this page in a browser.
The samples and SampleSelector pages should be hosted on a web server that is configured to handle PHP requests. The CheckPHPEnvironment
page can be used to review your PHP installation along with its available extensions.