2017 © Pedro Peláez
 

library client

PHP client for the Snaptier API

image

snaptier/client

PHP client for the Snaptier API

  • Saturday, April 14, 2018
  • by m1guelpf
  • Repository
  • 3 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Snaptier API Client

Installation

This version requires PHP 7.1 or 7.2., (*1)

To get the latest version, simply require the project using Composer:, (*2)

$ composer require snaptier/client

Usage

The main point of entry is the Snaptier\API\Client class. Simply create a new instance of that, and you're good to go!, (*3)

Practically, you will also want to set authentication details before calling any of the endpoint, however, this is not required to call endpoints for which authentication is not needed. We support logging in with an OAuth2 token, or with a username and password., (*4)

<?php

use Snaptier\API\Client;

$c = new Client();

$c->authenticate(Client::AUTH_OAUTH_TOKEN, 'your-token-here');
// $c->authenticate(Client::AUTH_HTTP_PASSWORD, 'your-username', 'your-password');

var_dump($c->api('users')->me());

Security

If you discover a security vulnerability within this package, please send an e-mail to Miguel Piedrafita at miguel@snaptier.co. All security vulnerabilities will be promptly addressed., (*5)

License

This package is licensed under The MIT License (MIT)., (*6)

The Versions

14/04 2018

dev-master

9999999-dev

PHP client for the Snaptier API

  Sources   Download

MIT

The Requires

 

bitbucket api client snaptier snaptier api snaptierapi snaptier client