承接 codepeak/oauth2-fortnox 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codepeak/oauth2-fortnox

最新稳定版本:1.0.3

Composer 安装命令:

composer require codepeak/oauth2-fortnox

包简介

A Fortnox provider for league/oauth2-client

README 文档

README

This is a package to integrate Fortnox authentication with the OAuth2 client library by The League of Extraordinary Packages.

Installation

composer require codepeak/oauth2-fortnox

Usage

Create instance of the provider

$provider = new \Codepeak\OAuth2\Client\Provider\Fortnox([
    'clientId' => "YOUR_CLIENT_ID",
    'clientSecret' => "YOUR_CLIENT_SECRET",
    'redirectUri' => "https://your.redirect.uri/full/url/path/here"
]);

Get authorization URL

$authorizationUrl = $provider->getAuthorizationUrl(['scope' => ['companyinformation', 'profile']]);

Get the access token

$token = $provider->getAccessToken("authorization_code", [
    'code' => $_GET['code']
]);

Refresh access token

$token = $provider->getAccessToken("refresh_token", [
    'refresh_token' => $refreshToken
]);

统计信息

  • 总下载量: 3.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-06