chandantul you must get better at reading documentation and code. You must be more careful.
Why did you think there was an authorize() method on a Net::OAuth2::Client object? It's not documented.
In fact the documentation for the module you have chosen to use states: "Net::OAuth2::Client - client for OAuth2 access, deprecated interface".
See https://metacpan.org/release/MARKOV/Net-OAuth2-0.66/source/examples/psgi/app.psgi#L88 for an example of how the client() subroutine should look.
By the way I am not the author of any of these modules.
The way forward always starts with a minimal test.
|