criteo/criteo-php-marketing-transition-sdk
最新稳定版本:1.0.3
Composer 安装命令:
composer require criteo/criteo-php-marketing-transition-sdk
包简介
Official Criteo PHP Marketing Transition SDK
README 文档
README
This project is deprecated
We've built a new set of SDKs to help you use our Criteo's API.
You can find the new PHP SDKs repositories here : https://github.com/criteo/criteo-api-marketingsolutions-php-sdk and https://github.com/criteo/criteo-api-retailmedia-php-sdk
Introduction
API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. This Transition SDK will help you migrate from MAPI to Criteo API. We will support it until end of 2021 when we will decommission the /legacy endpoints. After that date we will only support our official versioned Client Libraries available in Q3 2021.
More information: https://developers.criteo.com/marketing-solutions/docs/php-api-client-library
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: 2021-04
- Package version: 1.0.3
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
Requirements
PHP 7.1 and later
Installation & Usage
Composer
To install the bindings via Composer:
either run the following command: composer require criteo/criteo-php-marketing-transition-sdk
or add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/criteo/criteo-php-marketing-transition-sdk.git"
}
],
"require": {
"criteo/criteo-php-marketing-transition-sdk": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
require_once('/path/to/CriteoMarketingTransition/vendor/autoload.php');
Tests
To run the unit tests:
composer install ./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $clientId = 'YOUR_CLIENT_ID'; $clientCredentials = 'YOUR_PASSWORD'; // Automatic token refresh $apiInstance = new Criteo\Marketing\Api\AdvertiserApi(new TokenAutoRefreshClient($clientId, $clientCredentials)); try { $result = $apiInstance->apiPortfolioGet(); print_r($result); } catch (Exception $e) { echo 'Exception when calling AdvertiserApi->apiPortfolioGet: ', $e->getMessage(), PHP_EOL; } ?>
You can find the full example here.
Documentation for API Endpoints
All URIs are relative to https://api.criteo.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AdvertiserApi | apiPortfolioGet | GET /2021-04/advertisers/me | |
| AdvertiserApi | getCategories | GET /legacy/marketing/v1/advertisers/{advertiserId}/categories | Gets all advertiser's categories |
| AdvertiserApi | getCategory | GET /legacy/marketing/v1/advertisers/{advertiserId}/categories/{categoryHashCode} | Gets a specific advertiser's category |
| AnalyticsApi | getAdsetReport | POST /2021-04/statistics/report | |
| AnalyticsApi | getTransactionsReport | POST /2021-04/transactions/report | |
| AudienceApi | createAudience | POST /2021-04/audiences | |
| AudienceApi | deleteIdentifiers | DELETE /2021-04/audiences/{audience-id}/contactlist | |
| AudienceApi | getAudiences | GET /2021-04/audiences | |
| AudienceApi | modifyAudience | PATCH /2021-04/audiences/{audience-id} | |
| AudienceApi | modifyAudienceUsers | PATCH /2021-04/audiences/{audience-id}/contactlist | |
| AudienceApi | removeAudience | DELETE /2021-04/audiences/{audience-id} | |
| CampaignApi | getAdSet | GET /2021-04/marketing-solutions/ad-sets/{adSetId} | |
| CampaignApi | getBids | GET /legacy/marketing/v1/campaigns/bids | Gets a the bids for campaigns and their categories |
| CampaignApi | getCategories | GET /legacy/marketing/v1/campaigns/{campaignId}/categories | Gets categories |
| CampaignApi | getCategory | GET /legacy/marketing/v1/campaigns/{campaignId}/categories/{categoryHashCode} | Gets a specific category |
| CampaignApi | patchAdSets | PATCH /2021-04/marketing-solutions/ad-sets | |
| CampaignApi | searchAdSets | POST /2021-04/marketing-solutions/ad-sets/search | |
| CampaignApi | startAdSets | POST /2021-04/marketing-solutions/ad-sets/start | |
| CampaignApi | stopAdSets | POST /2021-04/marketing-solutions/ad-sets/stop | |
| CampaignApi | updateBids | PUT /legacy/marketing/v1/campaigns/bids | Update bids for campaigns and their categories |
| CategoryApi | getCategories | GET /legacy/marketing/v1/categories | Gets categories |
| CategoryApi | updateCategories | PUT /legacy/marketing/v1/categories | Enables/disables categories |
| OAuthApi | createToken | POST /oauth2/token |
Documentation For Models
- AdSetDeliveryLimitations
- AdSetFrequencyCapping
- AdSetGeoLocation
- AdSetSearchFilter
- AdSetTargeting
- AdSetTargetingRule
- Audience
- AudienceAttributes
- AudienceError
- AudienceNameDescription
- AudienceWarning
- BasicAudienceDefinition
- BidMessage
- CampaignBidChangeRequest
- CampaignBidChangeResponse
- CampaignBidChangeResponseMessageWithDetails
- CampaignBidMessage
- CampaignMessage
- CategoryBidChangeRequest
- CategoryBidMessage
- CategoryMessage
- CategoryUpdateError
- CategoryUpdateInput
- CategoryUpdatesPerCatalog
- CategoryUpdatesPerCatalogError
- CategoryUpdatesPerCatalogErrorMessageWithDetails
- ContactlistAmendment
- ContactlistAmendmentAttributes
- ContactlistAmendmentRequest
- ContactlistOperation
- ContactlistOperationAttributes
- CriteoApiDataOfPortfolioMessage
- CriteoApiError
- CriteoApiWarning
- DeleteAudienceContactListResponse
- DeleteAudienceResponse
- ErrorCodeResponse
- ErrorMessage
- GetAudiencesResponse
- GetPortfolioResponse
- InlineObject
- JwtModel
- ModifyAudienceResponse
- NewAudience
- NewAudienceAttributes
- NewAudienceRequest
- NewAudienceResponse
- NillableAdSetTargetingRule
- NillableDateTime
- NillableDecimal
- OAuth2Error
- PatchAdSet
- PatchAdSetBidding
- PatchAdSetBudget
- PatchAdSetScheduling
- PortfolioMessage
- ProblemDetails
- ReadAdSet
- ReadAdSetBidding
- ReadAdSetBudget
- ReadAdSetSchedule
- ReadModelAdSetId
- ReadModelReadAdSet
- ReplaceAudience
- ReplaceAudienceRequest
- ReplaceAudienceResponse
- RequestAdSetSearch
- RequestsAdSetId
- RequestsPatchAdSet
- ResponseAdSetId
- ResponseReadAdSet
- ResponsesAdSetId
- ResponsesReadAdSet
- StatisticsReportQueryMessage
- TransactionsReportQueryDataMessage
- TransactionsReportQueryEntityMessage
- TransactionsReportQueryMessage
- WriteModelAdSetId
- WriteModelPatchAdSet
Documentation For Authorization
In order to ease usage of this client library, you might want to use the TokenAutoRefreshClient as explained in the example.
Authorization
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A
Author
Disclaimer
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
criteo/criteo-php-marketing-transition-sdk 适用场景与选型建议
criteo/criteo-php-marketing-transition-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.27k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「rest」 「api」 「sdk」 「marketing」 「criteo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 criteo/criteo-php-marketing-transition-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 criteo/criteo-php-marketing-transition-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 criteo/criteo-php-marketing-transition-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
BlockCypher's PHP SDK for REST API
Helper classes for creating cookie headers
统计信息
- 总下载量: 6.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2021-05-07