Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.92 KB

File metadata and controls

60 lines (40 loc) · 1.92 KB

Flipdish\Client\ContentSecurityPolicyApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
contentSecurityPolicyReport POST /api/v1.0/csp/report

contentSecurityPolicyReport

object contentSecurityPolicyReport($request)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\ContentSecurityPolicyApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$request = new \Flipdish\\Client\Models\CspReportRequest(); // \Flipdish\\Client\Models\CspReportRequest | 

try {
    $result = $apiInstance->contentSecurityPolicyReport($request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContentSecurityPolicyApi->contentSecurityPolicyReport: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
request \Flipdish\Client\Models\CspReportRequest

Return type

object

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]