Skip to content

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

@sivareddyk

Description

@sivareddyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions