承接 tangent-solutions/powerbi-sdk 相关项目开发

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

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

tangent-solutions/powerbi-sdk

Composer 安装命令:

composer require tangent-solutions/powerbi-sdk

包简介

PHP SDK for working with PowerBI

README 文档

README

Build Status Codacy Badge Codacy Badge

A SDK which makes it easier to work with the PowerBI REST API.

Installation

composer require tangent-solutions/powerbi-sdk

Usage

You will first have to obtain an authorized access token. See the below example on how to do this with the League OAuth2 Client:

$provider = new \League\OAuth2\Client\Provider\GenericProvider([
    'clientId'                => '<client-id>',
    'clientSecret'            => '<client-secret>',
    'urlAuthorize'            => 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
    'urlAccessToken'          => 'https://login.windows.net/<tenant-id>/oauth2/token',
    'urlResourceOwnerDetails' => '',
    'scopes'                  => 'openid',
]);

try {
    // Try to get an access token using the resource owner password credentials grant.
    $accessToken = $provider->getAccessToken('password', [
        'username' => '<Azure-Username>',
        'password' => '<Azure-Password>',
        'resource' => 'https://analysis.windows.net/powerbi/api'
    ]);

    $token = $accessToken->getToken();
} catch (\League\OAuth2\Client\Provider\Exception\IdentityProviderException $e) {
    // Failed to get the access token
    exit($e->getMessage());
}

Once you have the access token you can create the client like this:

$client = new \Tngnt\PBI\Client($token);

Documentation

Wiki

PowerBI API Reference

Issues

View or log issues on the Issues tab on the repo.

Copyright and License

Copyright (c) Tangent Solutions. All Rights Reserved. Licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 41
  • Watchers: 11
  • Forks: 33
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固