golpilolz/stalksioapi

1.0 2020-06-13 19:56 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);