golpilolz / stalksioapi
1.0
2020-06-13 19:56 UTC
Requires
- php: >=7.3
- ext-json: *
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2024-05-19 22:02:13 UTC
README
Unofficial PHP library for https://stalks.io API
Installation
composer require golpilolz/stalksioapi
Usage
Initialisation
Init StalksIOApi
with the API Key
<?php $api = new StalksIOApi('1234567890abcdefghijklm0987654321');
Available methods
Weeks
Current Week
<?php $api->currentWeek();
If you want specific week just add the date (If date is not a sunday the function find the sunday before)
<?php $api->week(new DateTime('now'));
Friends
List all user's friends
<?php $api->friends();
Profile
<?php $api->getUserProfile("someone");
<?php $api->currentUser();
<?php $api->updatePassport($passport);