Closed pww217 closed 6 months ago
with your fix, it works for me. Thanks!
Good to hear, if only someone would approve it :)
I find that it doesn't seem capable of rejecting invitations, but I haven't really gotten to the bottom of that one yet. But this forked version has worked for me for weeks in a row on a cron schedule now.
I'm looking for a simple functionality here - get my invites and generally accept them except under certain conditions.
To do this I leverage
get_invitations()
andreply_invitation()
function. The first works and the latter does not.My code looks like this:
invites
is the response ofget_invitations()
with no modifications.api
is a regular object with username/pw auth, and I know it can return other functions correctly.And my output shows a successful pulling of the invitation, but the a 404 is returned for the POST reply, which from my limited experience with the library and the LinkedIn API looks like a malformed URL.
This debug log shows again a 200 from the GET, a 404 from the POST, and in the last line the urn and secret (altho secret is slightly altered).
I don't know if there's anything wrong with the request body itself, but it looks to me like this is a bad URL:
/voyager/apihttps://www.linkedin.com/voyager/api/relationships/invitations/7112521258587586562?action=accept
that seems to result from cramming aBASE_API_URL
in there. Is that intentional, or something that got broken on accident? Can I submit a PR that attempts to fix?