This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name domain.dev; | |
# force all requests to connec via HTTPS | |
return 301 https://domain.dev$request_uri; | |
} | |
server { | |
listen 443 ssl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -G https://api.verifiedbycam.com/v2/requests \ | |
-H "X-App-Key: c9cf97d8c394a861" \ | |
-H "X-Secret-Key: 779de173efee7e3b2e816c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"link": "https://api.verifiedbycam.com/delegate?token=13e26bbfc2847f786c7971c", | |
"token": "13e26bbfc2847f786c7971c" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"message": "An unknown error has occured.", | |
"error_id": "13e09fbdbafb1bbaf619eea53b4f2e97284cf7c0e2510933ddd2ec81a8118eb3" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST https://api.verifiedbycam.com/v2/request \ | |
-H "X-App-Key: c9cf97d8c394a861" \ | |
-H "X-Secret-Key: 779de173efee7e3b2e816c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503" \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"uid": 4323499, | |
"callback": "https://domain.com/request-received", | |
"caption": "Hi! My name is Finn of Adventure Time!", | |
"data": { | |
"email": "[email protected]", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"link": "https://api.verifiedbycam.com/delegate?token=13e26bbfc2847f786c7971c", | |
"token": "13e26bbfc2847f786c7971c" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST https://api.verifiedbycam.com/v2/request \ | |
-H "X-App-Key: c9cf97d8c394a861" \ | |
-H "X-Secret-Key: 779de173efee7e3b2e816c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503" \ | |
-H "Content-Type: application/json" \ | |
-d "pin=true" \ | |
-d '{ | |
"uid": 4323499, | |
"callback": "https://domain.com/request-received", | |
"caption": "Hi! My name is Finn of Adventure Time!", | |
"data": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"link": "https://api.verifiedbycam.com/delegate?token=13e26bbfc2847f786c7971c", | |
"pin": 483992 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST https://yourdomain.com/callback \ | |
-H "X-Vbc-Request-Signature: 7284cf7c9eea530933ddd2ec81a8118ebb4f213e0e2513baf6109fbdbafb1be9" \ | |
-H "X-Vbc-APP-Id: 54ee934f71468075228b4ac2" \ | |
-H "X-Vbc-Request-Id: 54eec765714680226d8b4968" \ | |
-H "X-Vbc-Nonce: 3jd8sf" \ | |
-d '{ | |
"type": "UPLOAD_STATUS", | |
"status": "PROCESSED", | |
"request": { | |
"uid": "123456", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$http_date = $_SERVER['HTTP_Date']; | |
$http_nonce = $_SERVER['HTTP_X_VBC_NONCE']; | |
$secret_key = '16c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503779de173efee7e3b2e8'; // Your API Secret Key | |
$http_signature = $_SERVER['HTTP_X_VBC_REQUEST_SIGNATURE']; | |
$signature_construct = hash_hmac("sha256", $http_date . $http_nonce, $secret_key); | |
if ($http_signature != $signature_construct) { |