Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Subs calling themselvesby Bod (Parson) |
on May 07, 2021 at 12:43 UTC ( [id://11132213]=perlquestion: print w/replies, xml ) | Need Help?? |
Bod has asked for the wisdom of the Perl Monks concerning the following question: Continuing from my previous discussion about connecting to LinkedIn - see Injecting a value into HTTP::Header I have managed to authenticate with LinkedIn using LWP::Authen::OAuth2::ServiceProvider::LinkedIn which I am writing. This is used by LWP::Authen::OAuth2. LinkedIn doesn't obey the OAuth2 standard which is why there was a need to add extra information. But now I am having difficulty posting anything to LinkedIn and I am getting an error from LWP::Authen::OAuth2 I've looked at the source code of LWP::Authen::OAuth2 to try and see what I need to do differently to make this work. However, I cannot fathom how that module is supposed to work. Clearly, it does work and it is my understanding that is missing because it is a working module. But these two subroutines just seem to be calling each other: Having gone through the authentication and obtained a token, I am trying to make a post using the following code. I am not expecting it to actually make a post yet but I was expecting to get an error from LinkedIn and not an error from Perl. Can you help me understand what the two subroutines in LWP::Authen::OAuth2 are actually doing?
Back to
Seekers of Perl Wisdom
|
|