承接 mvogelgesang/data_gov_admin_api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mvogelgesang/data_gov_admin_api

Composer 安装命令:

composer require mvogelgesang/data_gov_admin_api

包简介

Simple PHP SDK to connect to the api.data.gov API Umbrella.

README 文档

README

Simple PHP SDK to connect to the api.data.gov API Umbrella.

Prerequisites

Installation

  • Clone repo
  • Run composer install

Examples

Create Client

$client = new ApiDataGovClient('apiKey','adminAuthToken');

Get Users

$response = $client->getUsers();

Response

{
    "draw": 0,
    "recordsTotal": 5323,
    "recordsFiltered": 5323,
    "data": [
        {
            "created_at": "2013-05-02T18:53:42Z",
            "created_by": null,
            "deleted_at": null,
            "disabled_at": null,
            "email": "emailAddress1@example.gov",
            "first_name": "John",
            "last_name": "Doe",
            "registration_source": "web",
            "roles": null,
            "throttle_by_ip": null,
            "updated_at": "2014-01-20T12:59:02Z",
            "updated_by": null,
            "use_description": "",
            "version": 3,
            "website": null,
            "api_key_preview": "string...",
            "id": "long-hash-String"
        },
        {
            "created_at": "2012-06-28T02:54:37Z",
            "created_by": null,
            "deleted_at": null,
            "disabled_at": null,
            "email": "emailAddress@example.gov",
            "first_name": "Jane",
            "last_name": "Doe",
            "registration_source": "web",
            "roles": null,
            "throttle_by_ip": null,
            "updated_at": "2014-01-20T12:59:02Z",
            "updated_by": null,
            "use_description": "",
            "version": 3,
            "website": "http://gsa.gov",
            "api_key_preview": "string...",
            "id": "long-hash-String"
        },
        ....
    ]
 }

Get User

$users = $client->getUser('unique-user-id');

Response

{
    "user": {
        "id": "unique-user-id",
        "api_key_preview": "string...",
        "first_name": "John",
        "last_name": "Doe",
        "email": "example.email@example.com",
        "website": null,
        "use_description": "here is a description",
        "registration_source": "web_admin",
        "throttle_by_ip": false,
        "roles": [
            "api_write"
        ],
        "enabled": true,
        "created_at": "2015-02-19T16:08:21Z",
        "updated_at": "2015-02-19T16:08:21Z",
        "settings": {
            "id": "hash-string",
            "rate_limit_mode": null,
            "allowed_ips": null,
            "allowed_referers": null,
            "rate_limits": []
        },
        "creator": {
            "username": "creator@example.gov"
        },
        "updater": {
            "username": "creator@example.gov"
        }
    }
}

More Information

More Information

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固