KennethWilke / PingdomLib

A python library to consume the pingdom API
ISC License
25 stars 31 forks source link

Connect with different email #38

Open matthiasdoering opened 6 years ago

matthiasdoering commented 6 years ago

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?

taneishamitchell commented 6 years ago

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.