I am trying to get a blog by ID from Blogger.
Here's what Blogger API docs say I should add:
get(blogId=*, x__xgafv=None, maxPosts=None, view=None)
Gets a blog by id.
Args:
- blogId: string, A parameter (required)
- x__xgafv: string, V1 error format.
Allowed values- 1 - v1 error format
- 2 - v2 error format
- maxPosts: integer, A parameter
- view: string, A parameter
I've taken out the sensitive information (like the API Key):
url = 'blogger's url and api key'
PARAMS = {blogID = '######'}
blogs = requests.get(url, PARAMS)
print(blogs)
<Response [403]>
Is this an issue with authentication, or am I screwing something up?
I can do a get request on the url + api key and it returns <Response [200]>, so I'm certain I'm communicating with the correct server. It's just that I thought the API key would be enough to get back some basic blog post information.
I've looked at https://requests.readthedocs.io/en/master/user/quickstart/#make-a-request
and I'm clueless as to what I'm missing...these are arguments, right? That link only mentions parameters, and I can't figure out the syntax I'm missing.