Granot/lead-posting-gateway-granot

Granot Leads Posting Gateway 的 API 接口,用于将线索发布到 Granot。

dev-master 2014-09-08 16:49 UTC

This package is auto-updated.

Last update: 2024-09-14 16:43:41 UTC


README

这是 Granot Lead Posting Gateway 的非官方 API。

有关可以通过以下 URL 传递的字段文档: http://docs.google.com/View?id=dc9bddx5_10763jwtts

请注意,我只展示了几个字段,这并不完整。请参阅文档以传递所有必需的字段。

####通过 Composer 安装

composer require xclusive/lead-posting-gateway-granot

####使用示例


<?php

    require 'vendor/autoload.php';

    $account = new Granot\Account('API_ID_HERE');
    $lead = new Granot\Lead;

    $lead->servtypeid = 101;
    $lead->firstname = 'First Name';
    $lead->lastname = 'Last Name';

    $post = new Granot\PostLead($account, $lead);

    $response = $post->submit();

    print '<pre>';
    print_r($response);
    print '</pre>';
    
?>