承接 bboxlab/mosel 相关项目开发

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

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

bboxlab/mosel

Composer 安装命令:

composer require bboxlab/mosel

包简介

SDK for BT open APIs

README 文档

README

This package is still under construction (july 13th 2022).

Open Api are described in the Bouygues Telecom Developer Portal: https://developer.bouyguestelecom.fr

Install

composer require bboxlab/mosel

List of API and tools in Open API SDK

  • authenticator for app credentials Oauth flow
  • check email address
  • check iban
  • check portability

How to use?

First, install the package on your php application with composer.

Then, create a Sdk Mosel Object with a credentials and a mosel configuration.

$configuration = new Configuration();
[...]
$sdk = new Sdk('clientId', 'secretId', $configuration);

You can use a preexisting configuration, here for the default bt env configuration.

$sdk = new Sdk('clientId', 'secretId', new ConfigurationCreator()->createApConfig());

When sdk is set correctly, you can use it to fetch secured open api

$emailInput = new EmailInput();
$emailInput->setEmailAddress('example@email.com');
$response = $sdk->checkEmail($emailInput);

A Mosel Response object is returned with the app credentials token created as an object and the response given by Bt Api as an array.

How to test Mosel package

You can use phpunit to launch the tests:

 ./vendor/bin/phpunit tests/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-07