Last active
August 29, 2015 14:16
-
-
Save mosufy/bdd77e20fbad3c5d805c to your computer and use it in GitHub Desktop.
VBC API Video submission by user callback sample
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", | |
"data": { | |
"custom_data_1": "one", | |
"custom_data_2": "two", | |
"custom_data_3": "three" | |
}, | |
"status": "WAITING", | |
"reason": null, | |
"actedAt": null | |
}, | |
"upload": { | |
"hash": "e0e6f9442413098215242185dd01766c", | |
"name": "phpKiay9y", | |
"url": "https://vbc-staging-in.s3-us-west-1.amazonaws.com/original/e0e6f9442413098215242185dd01766c.video_BOCDF2FB-85D7-402E-EAB6-2CK0A41E0A4D.mp4", | |
"requestId":"54eee1847146809c208b4ad3", | |
"status": "PROCESSED", | |
"size": 766696, | |
"input": { | |
"extension": "mp4", | |
"duration":null, | |
"resolution":"360x480" | |
}, | |
"output": { | |
"MOBILE": "https://vbc-staging-out.s3-us-west-1.amazonaws.com/mobile/render/e0e6f9442413098215242185dd01766c.video_BOCDF2FB-85D7-402E-EAB6-2CK0A41E0A4.mp4", | |
"WEB": "https://vbc-staging-out.s3-us-west-1.amazonaws.com/web/render" | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment