定制 neclimdul/marketo-rest 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

neclimdul/marketo-rest

最新稳定版本:3.0.0-beta1

Composer 安装命令:

composer require neclimdul/marketo-rest

包简介

Marketo Rest API library

README 文档

README

Software License

This package provides a simple set of classes for interacting with Marketo's Rest API. Built using Swagger Codegen directly from Marketo's documentation.

Notes on versioning. I will do my best to start providing some sort of semversion-ish tags to releases. Marketo doesn't really provide any such versioning and just makes changes seemingly at random so this is the plan.

  1. Any major language or drastic template changes will be accompanied by a major version release.
  2. I will do my best to watch for signature changes to methods and treat those as "minor" releases. This would probably be a normal major release but they are generally "bug fixes" to APIs.
  3. Any documentation or other smaller fixes will be minor releases.

Install using composer

composer require neclimdul/marketo-rest

You can read more about Composer on its official webpage.

Usage

Laravel

This package comes with a provider to register all the API's and configuration.

Drupal

The 3.x release of the Drupal marketo_ma module will use and support this library.

Custom

<?php
$system_config = ;
$client = \NecLimDul\MarketoRest\ClientFactory::createOauthClient(new \NecLimDul\MarketoRest\Configuration([
    'clientId' => 'ASDFASDF',
    'clientSecret' => 'ASDFASDF',
    'baseUrl' => 'https://example.mktorest.com',
]));
$config = \NecLimDul\MarketoRest\LeadConfiguration::getDefaultConfiguration();
$config->setHost('https://example.mktorest.com');
$service = new \NecLimDul\MarketoRest\LeadsApi($client, $config);
$service->getLeadByIdUsingGET(16);
?>

Contributing

Pull requests are welcome.

Updating

Updating the documenting from swagger are pretty straight forward using an included script.

$ ./build_swagger.sh

Requirements:

  1. An operating system that supports sudo for some permission hackery.
  2. Docker

Testing

Most of the autogenerated tests aren't doing a lot so please review the changes to make sure they make sense. There are some other tests in PHPUnit so please run those as well.

$ ./vendor/bin/phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固