Fastly-py not finding valid API calls
I’m trying fastly-py for the first time and I’m running into a bit of an issue.
fastly/fastly-py
Fastly Python Client. Contribute to fastly/fastly-py development by creating an account on GitHub.
I’ve imported the api, and authenticated, but I’m having trouble using any of what I think are the pre-built commands
import fastly
fast = fastly.API()
fast.authenticate_by_key(’’)
fast.conn.request(‘GET’, ‘/current_customer’)
(<http.client.HTTPResponse object at 0x1088847b8>, {‘id’: ‘6CxAQ4St1w2vwnp1YUMgP1’, ‘created_at’: ‘2013-11-01T18:31:50Z’, ‘updated_at’: ‘2017-06-09T22:30:43Z’, ‘name’: ‘PAC-12 Networks’…fast.services()
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘API’ object has no attribute ‘services’
GitHub
fastly/fastly-py
Fastly Python Client. Contribute to fastly/fastly-py development by creating an account on GitHub.
but it looks like there is a services option, https://github.com/fastly/fastly-py/blob/master/fastly/fastly.py
def services(self):
return Service.list(self.conn)
perhaps I’m misreading the python files, if anyone has any ideas I’d really appreciate it.
Please sign in to leave a comment.
Comments
0 comments