PingdomLib icon indicating copy to clipboard operation
PingdomLib copied to clipboard

Connect with different email

Open matthiasdoering opened this issue 7 years ago • 1 comments

Hi,

I want to query the pingdom api. My problem is i can't use email, passwd and api-key. I must curl the api like this: curl -X GET -u email:password -H "account-email: main login mail" -H 'Content-Type: application/json' -H 'App-Key: API-KEY' "https://api.pingdom.com/api/2.1/summary.performance/354354354354?includeuptime=true&resolution=hour&order=desc" The Header account-email is important, without this i get 403 back.

Can someone assist me how I can use the api with this challenge?

matthiasdoering avatar Feb 15 '18 12:02 matthiasdoering

Can someone assist me how I can use the api with this challenge?

I found this in pingdom.py codes in function for init: ... **self.accountemail = accountemail** ...

I added reference to the account email that is the owner for my pingdom account, that worked.

taneishamitchell avatar Dec 04 '18 14:12 taneishamitchell