dotdigital/dotdigital-php 问题修复 & 功能扩展

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

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

dotdigital/dotdigital-php

最新稳定版本:2.7.0

Composer 安装命令:

composer require dotdigital/dotdigital-php

包简介

Dotdigital PHP Library

README 文档

README

A PHP wrapper for the Dotdigital API.

Requirements

Setup

  1. Require this package:
composer require dotdigital/dotdigital-php
  1. Require an HTTP factory implementation from this list, for example:
composer require guzzlehttp/psr7
  1. Require an HTTP client package of your choice from this list, for example:
composer require php-http/curl-client

Example usage

# app/index.php
require_once __DIR__ . '/vendor/autoload.php';

$dotdigital = new \Dotdigital\V2\Client();
$dotdigital::setApiUser('apiuser-123@apiconnector.com');
$dotdigital::setApiPassword('');
$dotdigital::setApiEndpoint('https://r1-api.dotdigital.com');

$accountInfo = $dotdigital->accountInfo->show();

API versions

Dotdigital began releasing endpoints for a new v3 API in May 2023. Initially these endpoints are in public preview, and only available to merchants with certain Dotdigital account configurations.

As of version 2.0.0, this SDK wraps both the v2 and the v3 APIs. It will be updated to wrap new v3 endpoints as they become required by our integrations.

V2

$dotdigital = new \Dotdigital\V2\Client();

V3

$dotdigital = new \Dotdigital\V3\Client();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-07