定制 upscale/cisco-meraki-client 二次开发

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

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

upscale/cisco-meraki-client

Composer 安装命令:

composer require upscale/cisco-meraki-client

包简介

Client for Cisco Meraki REST API

README 文档

README

This library is a simplistic PHP client for Cisco Meraki Dashboard API.

Features:

  • Authorization via API Key
  • Base URL of API endpoints
  • Parsing JSON responses
  • Following HTTP redirects
  • Rate limiting (default: 5 req/sec)

Installation

The library is to be installed via Composer as a project dependency in composer.json:

{
    "require": {
        "upscale/cisco-meraki-client": "*"
    }
}

Basic Usage

The library implements a handful of shortcut API methods:

$meraki = new \Upscale\Cisco\Meraki\ApiClient(
    new \GuzzleHttp\Client(),
    '0011223344556677889900aaabbbcccdddeeefff'
);

$organizationId = 123456;
$networks = $meraki->fetchNetworks($organizationId);

$networkId = $networks[0]['id'];
$devices = $meraki->fetchDevices($networkId);

$deviceId = $devices[0]['serial'];
$clients = $meraki->fetchClients($deviceId);

Advanced Usage

Arbitrary REST API endpoints can be called via the generic interface:

$organizations = $meraki->callApi('organizations', 'GET');

The arguments are passed through to Guzzle HTTP Client providing full control over API requests.

Contributing

Pull Requests are welcome to introduce the missing shortcut methods!

License

Licensed under the Apache License, Version 2.0.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固