j4k / oauth2-vkontakte Goto Github PK
View Code? Open in Web Editor NEWVkontakte provider for league/oauth2-client
License: MIT License
Vkontakte provider for league/oauth2-client
License: MIT License
Last version of league/oauth2-client is 1.4.1. This provider uses 0.5.
Could you update your provider to the new version please.
I got exception "Cannot use object of type GuzzleHttp\Psr7\Response as array" in vendor/zablik/oauth2-vkontakte/src/Vkontakte.php, line 223.
I think you should use getParsedResponse() instead of getResponse().
I try to get User from token, that another client give to my api.
$response = $this->oauth->usersGet([],$token,['user_ids' => []]);
$response = array_pop($response);
But get:
Notice: Only variables should be passed by reference in
/srv/avito/vendor/j4k/oauth2-vkontakte/src/Vkontakte.php on line
143
And after that user info. May be I do smth wrong?
Hello there,
I have a big problem when I try to use your script.
It always redirects me to an oauth.vk.com site with the following content:
{"error":"invalid_request","error_description":"OAuth authorization cannot be used from native VK applications"}
I don't know what I did wrong and I didn't find usable results at search.
I created the app at vk.com/apps and used the tokens from the app settings page in the script.
Hi,
possibly add User.php getEmail()?
Could you please implement this version, coz it doesn't work with league/oauth2-google 2.2.0 that already requires league/oauth2-client": "^2.0"
Hello. Does the Vkontakte OAuth2 client provider support PHP 7.4 version?
Sorry to bother you with an issue, but i didn't realize how to do a pull-request (my fault...).
This evening i've managed to modify your project to support the latest phleague oauth2-client (2.x): the code is available at https://github.com/rabser/oauth2-vkontakte.git, branch oauth-client-2x
There are not many changes, but some significant rearrange; i've tested this code with the latest vk API and i was able to get the email, so even the scopes are running fine.
I would need to use a v2.0 release of your provider inside the Moodle LMS plugin that iḿ rewriting to support the latest phpleague library.
Hope you can consider this.
Sincerely yours,
sergio
Hi there,
I have an issue when using your client in a bundle knpuniversity/oauth2-client-bundle
I would like to know how can I retrieve user's email because my code doesn't work and I am getting an error "Attempted to call an undefined method named "getEmail" of class J4k\OAuth2\Client\Provider\User"
Below is a snippet of code which I am using:
$client = $this->get('oauth2.registry')
->getClient('vkontakte');
$user= $client->fetchUser();
$user->getEmail();
From error message I see that method getEmail() is not exists.
Can you point me which method should I use or what I am doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.