riazxrazor/thankster
最新稳定版本:1.1.0
Composer 安装命令:
composer require riazxrazor/thankster
包简介
README 文档
README
Laravel wrapper for thankster api integration.
Api Documentation
For documentation on the api please refer to http://www.thankster.com/api-documentation/
Installation
Open composer.json and add this line below.
{
"require": {
"riazxrazor/thankster": "^1.0.0"
}
}
Or you can run this command from your project directory.
composer require riazxrazor/thankster
Configuration
Open the config/app.php and add this line in providers section.
Riazxrazor\Thankster\ThanksterServiceProvider::class,
add this line in the aliases section.
'Thankster' => Riazxrazor\Thankster\ThanksterFacade::class
get the config by running this command.
php artisan vendor:publish --tag=config
config option can be found app/thankster.php
'API_KEY' => 'Thankster API KEY',
'DEBUG' => FALSE
Basic Usage
You can use the function like this.
// Load, create, or update a user account. \Thankster::findOrCreateUserByEmail([ 'email' => 'iframetester@igicom.com', 'fname' => 'Michael', 'lname' => 'Scharf', 'address' => '123 Road', 'address2' => 'Apartment 5F', 'city' => 'New Martinsville', 'state' => 'WV', 'zip' => '26155', 'company' => 'Igicom LLC' ])->getResponse(); // This creates a new Project with a single card in it. \Thankster::createCardProject([ 'templateID'=> 1433354, 'thanksterUserID'=>7655, 'r_fname' => 'Michael', 'r_lname' => 'Scharf', 'r_company' => 'Igicom LLC', 'r_address' => '123 Road', 'r_address2' => 'Apartment 5F', 'r_city' => 'New Martinsville', 'r_state' => 'WV', 'r_zip' => '26155', 'r_country' => 'US', 'r_email' => 'iframetester@igicom.com' ])->getResponse(); \Thankster::applyMessages([ 'thanksterRecipientID' => 1221, 'thanksterUserID' => 1, 'inside1' => "TEXT", 'inside2' => "TEXT 2" ])->getResponse(); \Thankster::orderProject([ 'thanksterProjectID' => 1212, 'thanksterUserID' => 1, ])->getResponse(); \Thankster::setPartnerOrderID([ 'thanksterOrderID' => 1212, 'orderID' => 34, ])->getResponse(); \Thankster::approveForPrinting([ 'thanksterOrderID' => 1212, 'orderID' => 34, ])->getResponse();
统计信息
- 总下载量: 12.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-19