dev-master
9999999-dev
The Requires
v1.0.5
1.0.5.0
The Requires
v1.0.4
1.0.4.0
The Requires
v1.0.3
1.0.3.0
The Requires
v1.0.2
1.0.2.0
The Requires
v1.0.1
1.0.1.0
The Requires
Wallogit.com
2017 © Pedro Peláez
Install via Composer:, (*1)
"require": {
"saiba/ymapi": "1.0.*"
},
Run Composer Update, (*2)
composer update
Add YmapiServiceProvider to config/app.php:, (*3)
'providers' => array(
'Saiba\Ymapi\YmapiServiceProvider'
);
Publish the config files:, (*4)
php artisan config:publish saiba/ymapi
edit the config files under app/config/packages/saiba/ymapi/config/config.php Note the username and password, this is used as the default authentication username and password for various methods that require authentication but not an authenticated user, (*5)
To get a list of all your event ids:, (*6)
<?php
use Saiba\Ymapi\Events\Event;
Route::get('/', function()
{
$event = new Event();
$events = $event->getIds();
dd($events);
});
To search for a member: ( https://api.yourmembership.com/reference/2_00/People_All_Search.htm ), (*7)
<?php
use Saiba\Ymapi\People\Person;
Route::get('/', function()
{
$params = [
'SearchText' => 'Gerhard'
];
$person = new Person();
$result = $person->search($params);
dd($result);
});
To Register a new member: ( https://api.yourmembership.com/reference/2_00/Sa_Members_Profile_Create.htm ), (*8)
<?php
use Saiba\Ymapi\People\Person;
Route::get('/', function()
{
$params = [
'EmailAddr' => 'john@example.com',
'FirstName' => 'John',
'LastName' => 'Doe',
'Membership' => 'SAIBA Member & Business Accountant in Practice',
'MembershipExpiry' => '2060-10-05 00:00:00',
'MemberTypeCode' => '2014SAIBAMEM',
'Username' => 'Johnd',
'Password' => 'ThisismyPassword'
];
$person = (new Person())->create($params);
dd($person);
});
Please note when creating a new member you must follow the API Precisely all capitalization should be as per the API Documentation referenced above, (*9)
More features coming soon, this package is still under heavy development, (*10)