Following the directions found on google developers here
when I try to add an activity (a post) I get a python error
"Resource object has no attribute 'insert' "
but when I look here (at the api docs) there's clearly a insert method under activities()
this is the problem code
result = service.activities().insert(
userId=user_id,
body={
'object': {
#'orginalContent': content
},
'access': {
'items': [{
'type': 'domain'
}],
'domainRestricted': True
}
}).execute()
I handled all the authentication stuff before of course, the code above is taken from google's example And I have the proper scope(s) included, I can't for the life of me figure out the problem...
Anyone have experience with this??
or is anyone able to successfully run google's example code? would be a lot of help to know thanks
*also forgot to mention this is in a django view if that makes a difference