mirror of
https://github.com/avency/Gitea.git
synced 2025-10-29 10:42:33 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a790a45ca8 | |||
| 94b6025ce2 | |||
| e618152878 | |||
| 2737786bdd | |||
| 189dfcafee |
@ -30,7 +30,7 @@ require_once __DIR__ . '/vendor/autoload.php';
|
||||
$giteaClient = new Avency\Gitea\Client(
|
||||
'https://gitea.yourdomain.com',
|
||||
[
|
||||
'type' => Avency\Gitea::AUTH_TOKEN,
|
||||
'type' => Avency\Gitea\Client::AUTH_TOKEN,
|
||||
'auth' => 'your-auth-token'
|
||||
]
|
||||
);
|
||||
@ -40,7 +40,7 @@ or
|
||||
$giteaClient = new Avency\Gitea\Client(
|
||||
'https://gitea.yourdomain.com',
|
||||
[
|
||||
'type' => Avency\Gitea::AUTH_BASIC_AUTH,
|
||||
'type' => Avency\Gitea\Client::AUTH_BASIC_AUTH,
|
||||
'auth' => [
|
||||
'username' => 'your-username',
|
||||
'password' => 'your-password',
|
||||
@ -88,6 +88,7 @@ This project is licensed under the MIT License - see the
|
||||
Status | Method | Endpoint | Comment
|
||||
--- | --- | --- | ---
|
||||
✅ | GET | /admin/orgs |
|
||||
✅ | GET | /admin/users |
|
||||
✅ | POST | /admin/users |
|
||||
✅ | DELETE | /admin/users/{username} |
|
||||
✅ | PATCH | /admin/users/{username} |
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"license": ["MIT"],
|
||||
"require": {
|
||||
"php": "^7.2",
|
||||
"guzzlehttp/guzzle": "~6.0"
|
||||
"guzzlehttp/guzzle": "^7.3"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
Reference in New Issue
Block a user