0

I want to use Basecamp 2 API to send a comment as end user from my app with oAuth 2.0. But I don't understand how can i do this. I have access_token, I can send comment as admin user, but i can't send comments as end user like a manager. How can I do it?

if I try (I use python and requests):

url = BASE_URL + '/projects/<my_project>/todos/<my_todos>/comments.json'
body = {
 "content": "some text",
 "creator": '18054825'
 
}
headers={'Content-Type': 'application/json; charset=utf-8',
 'Authorization': 'Bearer ' + bc['access_token'],
 'User-Agent': 'MyApp ([email protected])',
 'Accept': 'application/json'
 }
r = requests.post(url=url, data=json.dumps(body), headers=headers)
r.status_code

I got 422 ERROR

asked Dec 10, 2020 at 5:30

1 Answer 1

1

This is impossible. Basecamp can't set alias as end user.

Support answer:

You need full OAuth2.0 authentication and you can only post through a user's profile if you authenticator with their personal token: https://github.com/basecamp/api/blob/master/sections/authentication.md

answered Apr 13, 2021 at 14:41
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.