adambalan / laravel-helpscout
A helpscout API package for laravel
Requires
- adambalan/helpscout-api: 1.13.1
- dev-master
- 1.6.15
- 1.6.14
- 1.6.13
- 1.6.12
- 1.6.11
- 1.6.10
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.2.0-beta4
- 1.2.0-beta3
- 1.2.0beta2
- 1.2.0-beta1
- 1.2.0-beta
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-new-post-facdes
This package is not auto-updated.
Last update: 2024-11-10 05:56:28 UTC
README
This is a very simple project that supports the Helpscout API project I started.
As such all tests are in that particular project. Also see that project for the Api.
This particular package for Laravel is nothing more then a Service provider that registers a set of facades to make accessing the API Endpoints easier.
Setup
composer require adambalan/laravel-helpscout
- Create an ENV called:
HELPSCOUT_DOCS_API_KEY
and assign it your appropriate API key.
GET Requests (Facades)
POST Requests (Facades)
PUT Requests (Facades)
DELETE Requests (Facades)
ASYNC (Facades)
Response Class (Regular Class: HelpscoutApi\Response\Response
)
We have a response class that contains two methods: getLocation()
and getContents()
which allows you to get the location of the created object and the contents
of the body of the response.
For the created response to come back, pass in: {'required': true}
for the body when implementing the Post Body contracts. This will make sure that any created
resources are passed back to you and you can use the getContents()
method to get the decoded JSON values.
For more info please see the Response docs.
Where are the tests?
The tests are located in the Helpscout API project I started.
I did not include tests here because this is nothing more then facades and a provider. There is no core logic here.