Compare commits

5 Commits
1.0 ... main

Author SHA1 Message Date
a790a45ca8 Merge pull request #3 from marcelosboeira/patch-1
Update composer.json
2021-10-15 14:37:53 +02:00
94b6025ce2 Merge pull request #2 from bobemoe/fix-example
fix example
2021-10-15 14:37:31 +02:00
e618152878 Update composer.json
I tried to use but don´t work 

Problem 1
    - Installation request for avency/gitea ^1.0 -> satisfiable by avency/gitea[1.0].
    - avency/gitea 1.0 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev] but these conflict with your requirements or minimum-stability.
2021-10-13 14:56:23 -03:00
2737786bdd fix example
Uncaught Error: Class 'Avency\Gitea' not found
2020-09-03 09:40:33 +01:00
189dfcafee Update README.md 2020-02-19 15:55:08 +01:00
2 changed files with 4 additions and 3 deletions

View File

@ -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} |

View File

@ -6,7 +6,7 @@
"license": ["MIT"],
"require": {
"php": "^7.2",
"guzzlehttp/guzzle": "~6.0"
"guzzlehttp/guzzle": "^7.3"
},
"autoload": {
"psr-4": {