infradigitalnusantara/idn-php-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

infradigitalnusantara/idn-php-client

Composer 安装命令:

composer require infradigitalnusantara/idn-php-client

包简介

Infra Digital Nusantara APIs Client Adapter

README 文档

README

INFRA DIGITAL NUSANTARA APIs

This is APIs library used for doing request to IDN endpoint.

You may install this library from composer. You can install this library using this command composer require infradigital/api-client or by registering the library packagist namespace into your composer.json file { "require": { "infradigital/api-client": "1.*" } } then invoke the composer install command php composer install

HOW TO

To initiate the API class you can import first the ApiClient class like this use InfraDigital\ApiClient; then initiate it in your php code

$idnClient = new ApiClient\Client($idnUserName, $idnPassword);

Once you already initiate the class you can use like this example

$idnClient->studentApi()->createStudent('Test User 1234' . date('YMDhis'), 'testBillKey01234' . date('YMDhis'),'0987612345', 'use.only@valid.domain', 'This is test to create user');

So it would look like this if we put it together

use InfraDigital\ApiClient;

$idnClient = new ApiClient\Client($idnUserName, $idnPassword);
$idnClient->studentApi()->createStudent('Test User 1234' . date('YMDhis'), 'testBillKey01234' . date('YMDhis'),'0987612345', 'use.only@valid.domain', 'This is test to create user');

You may put this short of code $idnClient->setDevMode(); after you initiate the class. Instead it will use IDN production domain as default uri.

$idnClient = new ApiClient\Client($idnUserName, $idnPassword);
$idnClient->setDevMode(); // This will be tell the class to use development uri
$idnClient->studentApi()->createStudent('Test User 1234' . date('YMDhis'), 'testBillKey01234' . date('YMDhis'),'0987612345', 'use.only@valid.domain', 'This is test to create user');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2020-07-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固