定制 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
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固