Skip to content

Added Support for Custom Headers

Compare
Choose a tag to compare
@SachinAgarwal1337 SachinAgarwal1337 released this 13 Mar 15:41
· 42 commits to master since this release

Custom Headers

withHeaders(array $headers)

Call This method before any other methods to set the headers. You can chain this method.

new PlacesApi($key = null, $verifySSL = true, array $headers = [])

To have custom headers set for every call, you can pass 3rd parameter as the headers to class constructor.

Note: For Laravel Users, you can set this in config file with key headers


See Commit: a50983a