ipwsystems/simply-api 问题修复 & 功能扩展

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

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

ipwsystems/simply-api

最新稳定版本:v1.0.5

Composer 安装命令:

composer require ipwsystems/simply-api

包简介

Provides integration to the Simply API v2.

README 文档

README

Simple wrapper for the Simply.com API

Api documentation here https://www.simply.com/dk/docs/api/

Installation

composer require ipwsystems/simply-api

Usage:

require_once __DIR__ . '/vendor/autoload.php';

use IpwSystems\SimplyApi\Client;

$c = new Client('<username>', '<api key>');

// List zones.
$c->getZones();

// Get zone info.
$c->getZone('domain.tld');

// List records in zone.
$c->getRecords('domain.tld');

// Get zone specific zone record.
$c->getRecord('domain.tld', '<sub record>');

// Get zone specific zone record explicit type.
$c->getRecord('domain.tld', '<sub record>', 'A');

// Add a new record to a zone.
$c->addRecord('domain.tld', 'A', [
    'name' => 'sub.domain.tld',
    'data' => '1.2.3.4',
    'priority' => 1,
    'ttl' => 21600,
]);

// Update a zone record.
// Where 123 is the record_id for the zone record. - See output from getRecord().
$c->updateRecord('domain.tld', 123, 'A', [
    'name' => 'sub.domain.tld',
    'data' => '1.2.3.4',
    'priority' => 10,
    'ttl' => 600,
]);

// Delete a zone record.
// Where 123 is the record_id for the zone record. - See output from getRecord().
$c->deleteRecord('domain.tld', 123)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2022-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固