Download the PHP package jrbarnard/efapiwrap without Composer
On this page you can find all versions of the php package jrbarnard/efapiwrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jrbarnard/efapiwrap
More information about jrbarnard/efapiwrap
Files in jrbarnard/efapiwrap
Package efapiwrap
Short Description Api wrapper for the EventsForce API for PHP
License MIT
Homepage https://github.com/jrbarnard/efapiphp
Informations about the package efapiwrap
PHP API wrapper for the Events Force API
An API client package for the Events Force API. For reference to what kind of data you can pass to the API methods refer to the general API documentation. To get a client slug / client account string see here
Contents
- Requirements
- Installation
- Initializing
- Full usage
- Events
- Attendees
- Sessions
- People
- Invoices
- Payments
- Responses
- Contributing
- Licence
Requirements
- PHP >= 5.5.0
- Guzzle
Installation
Initializing and basic usage of the client
Note: The follow examples all use the apiexample credentials as shown here
Now you are ready to use specific resources and methods The resources are split as shown on the api docs E.g to access events get all you would do the following:
The response is a \Psr\Http\Message\StreamInterface
Usage - Full method map
Events - http://docs.eventsforce.apiary.io/#reference/events
Get all - /events.json
Get single - /events/{event_id}.json
Attendees - http://docs.eventsforce.apiary.io/#reference/attendees
Get all attendees for an event - /events/{event_id}/attendees.json
Available parameters:
- lastModifiedAfter
- paymentStatus
- category
- registrationStatus
Get a single attendee for an event by their person ID - /events/{event_id}/attendees/{attendee_id}.json
Update an attendee - /events/{event_id}/attendees/{attendee_id}.json?_HttpMethod=PATCH
Needs testing with a full access api, not just the example
Authenticate an attendee - /events/{event_id}/attendees/authenticate.json
The value required for userID depends on the attendeeIDMode set for the event.
Sessions - http://docs.eventsforce.apiary.io/#reference/sessions
Get all sessions for an event - /events/{event_id}/sessions.json
Get a single session for an event - /events/{event_id}/sessions/{session_id}.json
People - http://docs.eventsforce.apiary.io/#reference/people
Get a single person - /people/{person_id}.json
Invoices - http://docs.eventsforce.apiary.io/#reference/invoices
Get all invoices - /invoices.json
Can have an optional invoiceNumberAfter parameter which will return the items with id's from that point, defaults to 0
Get a single invoice - /invoices/{invoice_number}.json
Update an invoice - /invoices/{invoice_number}.json?_HttpMethod=PATCH
Needs testing with a full access api, not just the example
Payments - http://docs.eventsforce.apiary.io/#reference/payments
Get all payments for an invoice - /invoices/{invoice_number}/payments.json
Post a payment against an invoice /invoices/{invoice_number}/payments.json
Needs testing with a full access api, not just the example
Get a single payment for an invoice - /invoices/{invoice_number}/payments/{payment_id}.json
Return values
The methods return a response object - http://guzzle3.readthedocs.org/http-client/response.html You can get the body of the response by calling:
You can also get the status code:
There are other helpers that can be seen here: http://guzzle3.readthedocs.org/http-client/response.html
Example JSON output:
Contributing
Found in CONTRIBUTING.md
Licence
Found in LICENSE file