fw4/sweepbright-api 问题修复 & 功能扩展

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

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

fw4/sweepbright-api

最新稳定版本:v1.2.1

Composer 安装命令:

composer require fw4/sweepbright-api

包简介

PHP library for implementing the SweepBright API

README 文档

README

PHP client for the SweepBright Website API. For terms of use and API credentials, refer to the official documentation.

Installation

composer require fw4/sweepbright-api

Usage

$client = new \SweepBright\SweepBright();
$accessToken = getAccessTokenFromDataStore();
if (empty($accessToken) || $accessToken->hasExpired()) {
    $accessToken = $client->requestAccessToken($clientId, $clientSecret);
    saveAccessTokenToDataStore($accessToken);
} else {
    $client->setAccessToken($accessToken);
}
$estate = $client->getEstate($estateId);

The API client provides the following methods:

  • public function getEstate(string $estate_id): Response
  • public function setEstateUrl(string $estate_id, string $url): void
  • public function saveContact(array $data, ?array $preferences = null, ?array $location_preference = null): void
  • public function saveEstateContact(string $estate_id, array $data): void

For more information about available request parameters and response properties, refer to the official API documentation. Properties on both requests and responses are style agnostic, and are accessible through both snake_case and camelCase.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-25