tigron/click-post 问题修复 & 功能扩展

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

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

tigron/click-post

Composer 安装命令:

composer require tigron/click-post

包简介

An API client for Ricoh Click & Post service

README 文档

README

An API client for Ricoh Click & Post service

Howto

Create the session

$session = \Esker\Session::get($username_setting->value, $password_setting->value);

Now allocate a transport with transportName = 'MODEsker'

$transport = new \Esker\Transport();
$transport->recipientType = "";
$transport->transportIndex = 0;
$transport->transportName = 'MODEsker';

Add variables for sending the document

$transport->add_variable('Subject', 'Invoice ' . $invoice->number);
$transport->add_variable('FromCompany', 'My Company');
$transport->add_variable('ToBlockAddress', 'Your company' . "\n" . 'Street 1' . "\n" . '1000 Brussels . "\n" . 'Belgium');
$transport->add_variable('Color', 'Y');
$transport->add_variable('Cover', 'N');
$transport->add_variable('BothSided', 'N');
$transport->add_variable('MaxRetry', 3);
$transport->add_variable('NeedValidation', 1);

Attach the document. Must be an instance of \Skeleton\File\Pdf Check the package tigron/skeleton-file-pdf for more information

$transport->add_attachment($pdf_object);

Send the document

$submission = new \Esker\Submission($session);
$result = $submission->submit_transport($transport);

$result will contain tracking information:

stdClass Object
(
    [submissionID] => TLOTXXXXXXX
    [transportID] => MOD.XXXXXXXXXXXXXXXxxX
)

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固