You are here

function MoAuthApi::makeCurlCall in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

1 call to MoAuthApi::makeCurlCall()
MoAuthApi::getTimeStamp in src/Api/MoAuthApi.php
This function is used to get the timestamp value

File

src/Api/MoAuthApi.php, line 33

Class

MoAuthApi

Namespace

Drupal\miniorange_saml\Api

Code

function makeCurlCall($url, $fields, $http_header_array = array(
  'Content-Type: application/json',
  'charset: UTF - 8',
  'Authorization: Basic',
)) {
  if (gettype($fields) !== 'string') {
    $fields = json_encode($fields);
  }
  $response = $this
    ->postCurlCall($url, $fields, $http_header_array);
  return $response;
}