curl -X POST -H "Content-Type: application/json" --data '{"username":"XXXX","password":"YYYY"}' https://public-api.sonic.net/dyndns/list_api_key
returns the expected:
{"message":"Not Found : the information you requested was not found.","result":"404"}
But
curl -X POST -H "Content-Type: application/json" --data '{"username":"XXXX","password":"YYYY","hostname":"ZZZZ.com"}' https://public-api.sonic.net/dyndns/api_key
returns
{"result":401,"message":"Unauthorized : you are not authorized to access this information."}
Am assuming from this that its not a credential issue with my XXXX/YYYY as when I intentionally
put the wrong password for list_api_key I get unauthorzied. So for api_key I guess it doesn't think I own the hostname. I have registered the domain name, but how does the API figure out if I own it or not?
Thanks, I am just trying to get this to work as I lost my static IP after the Fusion to FTTN upgrade
Pathma
returns the expected:
{"message":"Not Found : the information you requested was not found.","result":"404"}
But
curl -X POST -H "Content-Type: application/json" --data '{"username":"XXXX","password":"YYYY","hostname":"ZZZZ.com"}' https://public-api.sonic.net/dyndns/api_key
returns
{"result":401,"message":"Unauthorized : you are not authorized to access this information."}
Am assuming from this that its not a credential issue with my XXXX/YYYY as when I intentionally
put the wrong password for list_api_key I get unauthorzied. So for api_key I guess it doesn't think I own the hostname. I have registered the domain name, but how does the API figure out if I own it or not?
Thanks, I am just trying to get this to work as I lost my static IP after the Fusion to FTTN upgrade
Pathma