Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Http Error 422(Unprocessable Entity) while trying to create a basecamp message with the latest code under 'mativs/basecamp' #2

Open
sivareddyk opened this issue Mar 16, 2015 · 0 comments

Comments

@sivareddyk
Copy link

When we are trying to pass the API key we are getting the HTTP Error 401(UnAuthorized error).
EX: bc = Basecamp('https://example.basecamphq.com', 'API Key') which I took from the basecamp.

I replaced the API Key with the "base64.encodestring('%s:%s' % (username, password))" and I am successfully authenticated.

Now I am passing below information but getting Http Error 422 (Unprocessable Entity) while using "create_message()".

project_id = XXXXX
category_id = XXXXXX
title = 'Title Here'
body = 'This is from Python Script'
notify = [XXXXX, XXXXXXX]
data = bc.create_message(project_id, category_id, title, body, notify=notify)

Thanks in advance. Please look into the issue and do the needful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant