Last active
June 4, 2020 20:33
-
-
Save matthewrobertson/94d1f409ddd429714ae519d8693873b0 to your computer and use it in GitHub Desktop.
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 --header "Content-Type: application/json" --header "Authorization: SpoolSAS qGmX/SF1OmX81jLQVYrJ61xX9tE3Gq7JnRchs/eDfkaaJwdiIL/kUW8hQnGdwdtcJeHxQlvibyfM3i8r9WwwLg==" --request POST --data '{"senderId": "+17086676628", "recipientId": "+12126712234", "contents": "Hi, this is a test message."}' -v -k https://localhost:9998/rtc/telephony/sms | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.dbEbZdJKKPqLzwitDvHg-mDDtvRQXhy-TXSK1wQyiSY" \ | |
--header "X-Forwarded-Host: runner-dev-eus.eastus.dev.spool.azure-int.net" \ | |
--header "accept: application/json" \ | |
-d "{\"senderId\":\"+17086676628\",\"recipientId\":\"+12126712234\",\"contents\":\"test\"}" \ | |
--request POST -v -k https://localhost:9998/rtc/telephony/sms | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.dbEbZdJKKPqLzwitDvHg-mDDtvRQXhy-TXSK1wQyiSY" \ | |
--header "X-Forwarded-Host: runner-dev-eus.eastus.dev.spool.azure-int.net" \ | |
--header "accept: application/json" \ | |
-d "{\"senderId\":\"+17086676628\",\"recipientId\":\"+12126712234\",\"contents\":\"test\"}" \ | |
--request POST -v -k https://dev.telephony.azure.com/rtc/telephony/sms | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS INVALID" \ | |
--header "X-Forwarded-Host: runner-dev-eus.eastus.dev.spool.azure-int.net" \ | |
--header "accept: application/json" \ | |
-d "{\"senderId\":\"+17086676628\",\"recipientId\":\"+12126712234\",\"contents\":\"test\"}" \ | |
--request POST -v -k https://dev.telephony.azure.com/rtc/telephony/sms | |
curl -k -v --location --request POST 'https://localhost:9997/token' \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.dbEbZdJKKPqLzwitDvHg-mDDtvRQXhy-TXSK1wQyiSY" \ | |
--header "X-Forwarded-Host: runner-dev-eus.eastus.dev.spool.azure-int.net" \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"identity": "58d54e27-0034-4bcf-9c52-e2e5c4b86ec8" | |
}' | |
curl -k -v --location --request POST 'https://runner-dev-eus.eastus.127.0.0.1.xip.io:9997/token' \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.dbEbZdJKKPqLzwitDvHg-mDDtvRQXhy-TXSK1wQyiSY" \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"identity": "58d54e27-0034-4bcf-9c52-e2e5c4b86ec8" | |
}' | |
runner-dev-eus.eastus.127.0.0.1.xip.io | |
npm run request -- --key qGmX/SF1OmX81jLQVYrJ61xX9tE3Gq7JnRchs/eDfkaaJwdiIL/kUW8hQnGdwdtcJeHxQlvibyfM3i8r9WwwLg== --url https://localhost:9998/rtc/telephony/sms --payload '{ \"senderId\": \"+17086676628\", \"recipientId\": \"+12126712234\", \"contents\": \"Hi\" }' | |
npm run request -- --key qGmX/SF1OmX81jLQVYrJ61xX9tE3Gq7JnRchs/eDfkaaJwdiIL/kUW8hQnGdwdtcJeHxQlvibyfM3i8r9WwwLg== --url https:// runner-dev-eus.eastus.dev.communications.azure.net/rtc/telephony/sms --payload '{ \"senderId\": \"+17086676628\", \"recipientId\": \"+12126712234\", \"contents\": \"Hi\" }' | |
npm run request -- --key ciQJx1IPXgVpeoKnejS3jJ11nNXpYZSSTXdn0O7nDzATkuw6rXZeMNQt9gP3uBi/c3T3ZiAoKs99JyKA6ysF4Q== --url https://mattsdevrunnder.eastus.dev.communications.azure.net/rtc/telephony/sms --payload '{ \"senderId\": \"+17086676628\", \"recipientId\": \"+12126712234\", \"contents\": \"Hi\" }' | |
endpoint=https://mattsdevrunnder.eastus.dev.communications.azure.net/;accesskey=ciQJx1IPXgVpeoKnejS3jJ11nNXpYZSSTXdn0O7nDzATkuw6rXZeMNQt9gP3uBi/c3T3ZiAoKs99JyKA6ysF4Q== | |
# prod send SMS | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--header "accept: application/json" \ | |
-d "{\"senderId\":\"+17086676628\",\"recipientId\":\"+12126712234\",\"contents\":\"test\"}" \ | |
--request POST -v -k https://mattsdevrunnder.eastus.dev.communications.azure.net/rtc/telephony/sms | |
# localhost send SMS | |
curl --header "Content-Type: application/json" \ | |
--header "X-Forwarded-Host: mattsdevrunnder.eastus.dev.communications.azure.net" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--header "accept: application/json" \ | |
-d "{\"senderId\":\"+17086676628\",\"recipientId\":\"+12126712234\",\"contents\":\"test\"}" \ | |
--request POST -v -k https://localhost:9998/sms?api-version=2020-05-28-preview | |
# localhost token | |
curl --header "Content-Type: application/json" \ | |
--header "X-Forwarded-Host: mattsdevrunnder.eastus.dev.communications.azure.net" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--header "accept: application/json" \ | |
-d "{\"Identity\":\"1234\"}" \ | |
--request POST -v -k https://localhost:9997/token | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--header "accept: application/json" \ | |
-d "{\"Identity\":\"1234\"}" \ | |
--request POST -v -k https://mattsdevrunnder.eastus.dev.communications.azure.net/token?api-version=1.0 | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.XIWMVcLftkqfjiRkcaFGxwlscNJ36jburTv9L1iaFWM" \ | |
--header "accept: application/json" \ | |
-d "{\"Identity\":\"1234\"}" \ | |
--request POST -v -k https://ajalt-dev.eastus.dev.communications.azure.net/token?api-version=1.0 | |
curl --header "Access-Control-Request-Method: GET" \ | |
--header "Origin: http://localhost" \ | |
--header "X-Forwarded-Host: mattsdevrunnder.eastus.dev.communications.azure.net" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--request HEAD -v -k https://localhost:9997/token | |
curl -H "Access-Control-Request-Method: POST" -H "Origin: http://contoso.com" --head https://mattsdevrunnder.eastus.dev.communications.azure.net/token?api-version=2020-05-19-preview | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--header "accept: application/json" \ | |
-d "{\"Identity\":\"1234\"}" \ | |
--request POST -v -k | |
## Armclient | |
armclient post subscriptions/{subscription_id}/resourcegroups/{resource_group} /providers/Microsoft.SpoolService/spools/{resource_name}/listkeys?api-version=2019-10-10-preview -verbose | |
## conn strings | |
endpoint=https://ajalt-dev.eastus.dev.communications.azure.net/;accesskey=yxYoof6xcE8sYjydN9F4pQN+WN0zCnUwJDdZP2iL+LR1cesvs1ZP5/fgrCCZVOf2hRyCl1inMf809WH1rUyCaA== | |
curl --header "Content-Type: application/json" \ | |
--header "X-Forwarded-Host: mattsdevrunnder.eastus.dev.communications.azure.net" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.PRw6uAb-wvFB1_G8Ymw6Rj15bGSmn7OE7yYMybCjGmg" \ | |
--header "accept: application/json" \ | |
-d "{\"senderId\":\"+17086676628\",\"recipientId\":\"+12126712234\",\"contents\":\"test\"}" \ | |
--request POST -v -k https://localhost:9998/sms?api-version=2020-05-28-preview | |
curl --header "Content-Type: application/json" \ | |
--header "Authorization: SpoolSAS eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydW5uZXItZGV2LWV1cyIsInJlczpyZ24iOiJlYXN0dXMiLCJzYXM6YXJlYXMiOiJhZG1pbiJ9.XIWMVcLftkqfjiRkcaFGxwlscNJ36jburTv9L1iaFWM" \ | |
--header "accept: application/json" \ | |
-d "{\"Identity\":\"1234\"}" \ | |
-v -k https://ajalt-dev.eastus.dev.communications.azure.net/token?api-version=1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment