在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hybridauth/hybridauth开源软件地址(OpenSource Url):https://github.com/hybridauth/hybridauth开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Hybridauth 3.8Hybridauth enables developers to easily build social applications and tools to engage websites visitors and customers on a social level that starts off with social sign-in and extends to social sharing, users profiles, friends lists, activities streams, status updates and more. The main goal of Hybridauth is to act as an abstract API between your application and the various social networks APIs and identities providers such as Facebook, Twitter and Google. UsageHybridauth provides a number of basic examples. You can also find complete Hybridauth documentation at https://hybridauth.github.io $config = [
'callback' => 'https://example.com/path/to/script.php',
'keys' => [
'key' => 'your-twitter-consumer-key',
'secret' => 'your-twitter-consumer-secret',
],
];
try {
$twitter = new Hybridauth\Provider\Twitter($config);
$twitter->authenticate();
$accessToken = $twitter->getAccessToken();
$userProfile = $twitter->getUserProfile();
$apiResponse = $twitter->apiRequest('statuses/home_timeline.json');
}
catch (\Exception $e) {
echo 'Oops, we ran into an issue! ' . $e->getMessage();
} Requirements
InstallationTo install Hybridauth we recommend Composer, the now defacto dependency manager for PHP. Alternatively, you can download and use the latest release available at Github. Versions Status
Questions, Help and Support?For general questions (i.e, "how-to" questions), please consider using StackOverflow instead of the Github issues tracker. For convenience, we also have a [low-activity] Gitter channel if you want to get help directly from the community. LicenseHybridauth PHP Library is released under the terms of MIT License. For the full Copyright Notice and Disclaimer, see COPYING.md. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论