ganlvtech / eeyes-common
This package is abandoned and no longer maintained.
No replacement package was suggested.
Common library for eeyes.net.
0.1.1
2017-09-24 07:10 UTC
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2020-02-12 09:29:35 UTC
README
安装
composer require ganlvtech/eeyes-common
使用
<?php require './vendor/autoload.php'; \Eeyes\Common\EeyesCommon::config([ 'API_URL' => 'https://api.eeyes.net', 'API_TOKEN' => 'secret', 'IMG_URL' => 'https://img.eeyes.net', ]); $result = \Eeyes\Common\Api\Eeyes\Permission::username('username', 'permission'); var_dump($result); $result = \Eeyes\Common\Api\Eeyes\Permission::token('token', 'permission'); var_dump($result); $result = \Eeyes\Common\Api\Eeyes\Notification::dingTalk('Test message'); var_dump($result); echo \Eeyes\Common\Img\View::footer(); ?>
LICENSE
The MIT License (MIT)
Copyright (c) 2017 eeyes.net
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.