CURL - Unable to retrieve device shadow using curl
I have looked at the original post “Unable to retrieve device shadow using curl”
I am of course substituting the real keys for PUBLIC_KEY and DEVICE_KEY
I have tried:
curl https://mdash.net/api/v2/devices/device2/rpc/RPC.List?access_tokenPUBLIC_KEY
curl https://mdash.net/api/v2/devices/device2/rpc/RPC.List?access_tokenDEVICE_KEY
curl https://mdash.net/api/v2/devices/device2/rpc/RPC.List?access_token"PUBLIC_KEY"
curl https://mdash.net/api/v2/devices/device2/rpc/RPC.List?access_token"DEVICE_KEY"
curl https://mdash.net/api/v2/devices/device2/rpc/RPC.List?access_token’PUBLIC_KEY’
curl https://mdash.net/api/v2/devices/device2/rpc/RPC.List?access_token’DEVICE_KEY’
What I get back is:
{“message”:“Unauthorized”}
My ACL is as follows:
{
“shadow_read”: “.”,
“shadow_write”: “.”,
“rpc”: “.*”,
“public_key”: PUBLIC_KEY,
“data_read”: {},
“data_write”: {}
}
What am I doing wrong?
Any help would be greatly appreciated!