Download the PHP package beeyev/gettr-api-client-php without Composer
On this page you can find all versions of the php package beeyev/gettr-api-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beeyev/gettr-api-client-php
More information about beeyev/gettr-api-client-php
Files in beeyev/gettr-api-client-php
Package gettr-api-client-php
Short Description GETTR.com API PHP Client
License MIT
Homepage https://github.com/beeyev/gettr-api-client-php
Informations about the package gettr-api-client-php
Gettr API Clinet PHP
A GETTR.com client library written in PHP with Laravel support.
This library uses unofficial publicly accessible API endpoints of the website, so keep in mind that some endpoints could stop working anytime. Anyway, open an issue if something is broken or missing.
Installation
Install the package via composer:
Optionally, if you use Laravel, you can publish the config file of this package with this command:
The following config file will be published in config/gettr.php
, set user
and token
if you want to use methods which require authorization. Read on to find out where to get an authorization token.
How to obtain the credentials to communicate with Gettr
- Authenticate on gettr.com
- Open dev tools in browser and find
username
andtoken
values insidex-app-auth
in the HTTP request header of any call to anapi.gettr.com
endpoint.Show screenshot
How to use
Example
Or you can just use Laravel facades
API methods using Laravel facades:
Posts
Likes
Users
Suggestions
Testing
¯_(ツ)_/¯
License
The MIT License (MIT). Please see License File for more information.