When you use JSON to call an API - not a REST API, but something like JSON-RPC - you will usually want to encode one of several possible messages.
Your request body looks like this:
{
"type": "MessageWithA",
curl 'https://api-citizens-prod-imei.gs-ef.com/ceirimeicheck/api/v1/imei/check' | |
-H 'Host: api-citizens-prod-imei.gs-ef.com' | |
-H 'Content-Type: application/json' | |
-H 'Accept: */*' | |
-H 'Connection: keep-alive' | |
-H 'Accept-Language: en' | |
-H 'Content-Length: 34' | |
-H 'Accept-Encoding: gzip, deflate, br' | |
-H 'User-Agent: CitizenApp_Ntra/1.0.0 CFNetwork/1568.300.101 Darwin/24.2.0' | |
--data '{"imeiNumber":["351941237314725"]}' |
# This file is used by App Engine flex environment PHP runtime by name convention nginx-app.conf: | |
# https://cloud.google.com/appengine/docs/flexible/php/runtime#customize_nginx | |
# App Engine rewrites everything to index.php$uri, this prevents us to catch | |
# anything else with `location` block, so the hack is to catch it with another | |
# rewrite that lets us handle in our own `location ~ ^/myapp` below | |
# (https://github.com/GoogleCloudPlatform/buildpacks/blob/ff2ea2737a928087dcec192bf3ce103dc356ad5e/pkg/nginx/nginx.go#L93) | |
rewrite ^/index.php(.*)$ /myapp$1; | |
# Handle this our way first because we want to try serving a file if it matches, |
<?php | |
// $request comes from your Controller method, but you can adjust with whatever framework you use | |
$signature = $request->header(ZendeskSupport::WEBHOOK_SIGNATURE_HEADER), | |
$timestamp = $request->header(ZendeskSupport::WEBHOOK_SIGNATURE_TIMESTAMP_HEADER), | |
$rawBody = $request->getContent(); | |
$computedSignature = base64_encode(hash_hmac( | |
'sha256', |
Property / Log Level | Debug | Info | Notice | Warning | Error | Critical | Alert | Emergency | |
---|---|---|---|---|---|---|---|---|---|
Disposable | X | ||||||||
Statistical | X | X | X | X | X | X | X | ||
Relevant | X | X | X | X | X | X | |||
Undersired | X | X | X | X | X | ||||
Unstable | X | X | X | X | |||||
Stateful | X | X | X | ||||||
Unsecure | X | X | |||||||
Unfixable | X |
<?php | |
function calculateDistance($firstLatitude, $firstLongitude, $secondLatitude,$secondLongitude) | |
{ | |
//get polar angle θ (theta) (angle with respect to polar axis) | |
$theta = $firstLongitude - $secondLongitude; | |
$radians = sin( | |
deg2rad($firstLatitude) | |
) * sin( |
function createSamples(name, createVariation) { | |
const sampleCount = 10000; | |
const variations = []; | |
for (let i = 0; i < sampleCount; i++) { | |
variations.push(createVariation()); | |
} | |
const countData = variations.reduce((accum, curr) => { | |
if (accum[curr]) { |
wvideo=tra6gsm6rl
hashedId=tra6gsm6rl
in the page sourcehttp://fast.wistia.net/embed/iframe/
+ video ID in your browser"type":"original"
in the page source and
copy the URL from the next line
e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
"type":"hd_mp4_video"
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !