https://github.com/unfoldingword-dev/android-gogs-client
A client library for interacting with the Gogs REST api.
https://github.com/unfoldingword-dev/android-gogs-client
Last synced: 12 months ago
JSON representation
A client library for interacting with the Gogs REST api.
- Host: GitHub
- URL: https://github.com/unfoldingword-dev/android-gogs-client
- Owner: unfoldingWord-dev
- License: mit
- Created: 2016-02-26T18:19:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T23:42:39.000Z (about 7 years ago)
- Last Synced: 2025-05-14T00:10:28.782Z (about 1 year ago)
- Language: Java
- Size: 147 KB
- Stars: 13
- Watchers: 8
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/unfoldingWord-dev/android-gogs-client)
# android-gogs-client
A client library for interacting with the [Gogs](https://gogs.io) REST api. This library is written to communicate according to the api defined in [gogits/go-gogs-client](https://github.com/gogits/go-gogs-client/wiki).
##Supported Operations
* create user
* edit user
* search users
* get user
* delete user
* search repositories
* list user repositories
* create repository
* get repository
* delete repository
* create application token
* list application tokens
* create public key
* get public key
* list public keys
* delete public key
##Installation
To use this library your Android project must be configured to use the JCenter or Maven Central repositories.
Add the following to your package dependencies and sync gradle.
```
compile 'org.unfoldingword.tools:gogs-client:1.6.0'
```
##Usage
```
GogsAPI api = new GogsAPI("https://try.gogs.io/api/v1"); // change to any gogs server
List users = api.searchUsers("some-user-name", 5, null);
// do something
...
// inspect actual response for more details if needed
Response response = api.getLastResponse();
```