2017 © Pedro Peláez
 

library thankster

image

riazxrazor/thankster

  • Saturday, January 27, 2018
  • by riazXrazor
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,521 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 30 % Grown

The README.md

thankster

Laravel wrapper for thankster api integration., (*1)

Api Documentation

For documentation on the api please refer to http://www.thankster.com/api-documentation/, (*2)

Installation

Open composer.json and add this line below., (*3)

{
    "require": {
        "riazxrazor/thankster": "^1.0.0"
    }
}

Or you can run this command from your project directory., (*4)

composer require riazxrazor/thankster

Configuration

Open the config/app.php and add this line in providers section., (*5)

Riazxrazor\Thankster\ThanksterServiceProvider::class,

add this line in the aliases section., (*6)

'Thankster' => Riazxrazor\Thankster\ThanksterFacade::class

get the config by running this command., (*7)

php artisan vendor:publish --tag=config

config option can be found app/thankster.php, (*8)


'API_KEY' => 'Thankster API KEY', 'DEBUG' => FALSE

Basic Usage

You can use the function like this., (*9)

// 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();



The Versions

27/01 2018

dev-master

9999999-dev

  Sources   Download

MIT GPL-3

The Requires

 

by Riaz Laskar

27/01 2018

1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

 

by Riaz Laskar

19/04 2017

1.0.0

1.0.0.0

  Sources   Download

GPL-3

The Requires

 

by Riaz Laskar