PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Okanlawon Anuoluwapo   Crud HTTP PHP Curl Request   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Crud HTTP PHP Curl Request
Send HTTP requests to perform CRUD operations
Author: By
Last change:
Date: 8 months ago
Size: 433 bytes
 

Contents

Class file image Download
<?php
ini_set
("display_errors", 1);

require_once
"../vendor/autoload.php";

// default constant
define('accessToken', 'token');

// headers
$headers = [
   
'Content-Type: application/json', 'Accept: application/json',
   
'Authorization: '.accessToken
];

define('HOST_API', 'http://localhost/dacam/facs/api-v2/routes/'); // host api url
define('HEADERS', $headers); // additional http headers

// set your config
// print "OK";