Fix links to Developer API Reference #1302

* Fix links to Developer API Reference
This commit is contained in:
Prakash Gangadharan
2019-10-15 23:30:16 +05:30
committed by GitHub
parent 4ddb1de829
commit 2f353688b4
42 changed files with 73 additions and 73 deletions

View File

@@ -3,7 +3,7 @@
// # Create Webhook Sample
//
// This sample code demonstrate how you can create a webhook, as documented here at:
// https://developer.paypal.com/docs/api/#create-a-webhook
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_post
// API used: POST /v1/notifications/webhooks
require __DIR__ . '/../bootstrap.php';

View File

@@ -3,8 +3,8 @@
// # Delete Webhook Sample
//
// This sample code demonstrate how to use this call to search for all webhook events., as documented here at:
// https://developer.paypal.com/docs/api/#delete-a-webhook
// API used: DELETE v1/notifications/webhooks/<Webhook-Id>
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_delete
// API used: DELETE v1/notifications/webhooks/{webhook_id}
// ## Get Webhook Instance

View File

@@ -3,8 +3,8 @@
// # Get Webhook Sample
//
// This sample code demonstrate how you can get a webhook, as documented here at:
// https://developer.paypal.com/docs/api/#get-a-webhook
// API used: GET /v1/notifications/webhooks/<Webhook-Id>
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_get
// API used: GET /v1/notifications/webhooks/{webhook_id}
// ## Get Webhook ID.
// In samples we are using CreateWebhook.php sample to get the created instance of webhook.

View File

@@ -3,8 +3,8 @@
// # Get Webhook Sample
//
// This sample code demonstrate how you can get a webhook, as documented here at:
// https://developer.paypal.com/docs/api/#get-a-webhook
// API used: GET /v1/notifications/webhooks/<Webhook-Id>
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_get
// API used: GET /v1/notifications/webhooks/{webhook_id}
// ## List Subscribed Event Types
// Use this call to retrieve the list of events types that are subscribed to a webhook.

View File

@@ -3,7 +3,7 @@
// # Get All Webhooks Sample
//
// Use this call to list all the webhooks, as documented here at:
// https://developer.paypal.com/docs/api/#list-all-webhooks
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_list
// API used: GET /v1/notifications/webhooks
// ## List Webhooks

View File

@@ -3,7 +3,7 @@
// # Search Webhook Events Sample
//
// This sample code demonstrate how to use this call to search for all webhook events., as documented here at:
// https://developer.paypal.com/docs/api/#search-webhook-events
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks-events_list
// API used: GET /v1/notifications/webhooks-events
// ## Get Webhook Instance

View File

@@ -3,8 +3,8 @@
// # Update Webhook Sample
//
// This sample code demonstrate how to use this call to update a webhook; supports the replace operation only, as documented here at:
// https://developer.paypal.com/docs/api/#update-a-webhook
// API used: PATCH v1/notifications/webhooks/<Webhook-Id>
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_update
// API used: PATCH v1/notifications/webhooks/{webhook_id}
// ## Get Webhook ID.
// In samples we are using CreateWebhook.php sample to get the created instance of webhook.

View File

@@ -44,8 +44,8 @@ $requestBody = '{"id":"WH-7MU294299R542214K-4N1831857K851783H","event_version":"
//$headers = getallheaders();
/**
* In Documentions https://developer.paypal.com/docs/api/webhooks/#verify-webhook-signature_post
* All header keys as UPPERCASE, but I recive the header key as the example array, First letter as UPPERCASE
* In documentations https://developer.paypal.com/docs/api/webhooks/v1/#verify-webhook-signature
* All header keys as UPPERCASE, but I receive the header key as the example array, First letter as UPPERCASE
*/
$headers = array_change_key_case($headers, CASE_UPPER);

View File

@@ -3,7 +3,7 @@
// # Get Reference List of all Webhook Event Types
//
// This sample code demonstrate how you can get reference list of all webhook event types, as documented here at:
// https://developer.paypal.com/docs/api/#get-a-reference-list-of-webhook-event-types
// https://developer.paypal.com/docs/api/webhooks/v1/#webhooks-event-types_list
// API used: GET /v1/notifications/webhooks-event-types
$apiContext = require __DIR__ . '/../bootstrap.php';