定制 waynestate/waynestate-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

waynestate/waynestate-api

Composer 安装命令:

composer require waynestate/waynestate-api

包简介

An API wrapper for the Wayne State University v1 API

README 文档

README

PHP wrapper for the Wayne State University API http://api.wayne.edu/

Installation

To install this library, run the command below and you will get the latest version

composer require waynestate/waynestate-api

Usage

Create the object

# start.php

use Waynestate\Api\Connector;

...

$api = new Connector(API_KEY);

// Set the params
$params = array(
    'promo_group_id' => 123,
    'is_active' => '1',
    'ttl' => TTL,
);

// Get promotions from the API
$promos = $api->sendRequest('cms/promotions/listing', $params);

Setting a unique endpoint before the Connector is instantiated

define('API_ENDPOINT', 'http://api.domain.com/v1/');

Setting a unique endpoint after the Connector is instantiated

$api->cmsREST = 'http://api.domain.com/v1/';

Temporarily using the 'production' endpoint

# Use the production endpoint for only the next $api->sendRequest() call
$api->nextRequestProduction();

Best used with the following packages:

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固