PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Peter PHP HTTP Client Library   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Peter PHP HTTP Client Library
Access sites with HTTP request/response classes
Author: By
Last change:
Date: 7 months ago
Size: 1,268 bytes
 

Contents

Class file image Download

wp-http

Introduction

The object-oriented style helper class helps you accessing the HTTP request/response.

Usage

  • 
    
  • Please see the more details about the ```main.php```.

Sample code

  • Create the ```api-key.ini``` in this project root path and the ini file contents are as follows:
[Facebook]
access_token=define_your_access_token
[Rebrandly]
api_key=define_your_api_key

  • We use the Facebook graph API and Rebrandly API to complete the ```GET``` and ```POST``` examples.
  • Please see the ```main.php``` to get the more details about ```GET``` and ```POST``` examples.

References

Here is the references about the WordPress HTTP API. - wp_remote_get - wp_remote_post - wp_remote_request

And in our helper class, we use the `wp_remote_get` and `wp_remote_post` to complete this project.

How to solve the curl(60):SSL certificate problem

TODO

Include the more available CURL options.