https://github.com/wpdirectory/wporg
An API wrapper for the WordPress.org APIs.
https://github.com/wpdirectory/wporg
api wordpress
Last synced: 5 months ago
JSON representation
An API wrapper for the WordPress.org APIs.
- Host: GitHub
- URL: https://github.com/wpdirectory/wporg
- Owner: wpdirectory
- License: mit
- Created: 2018-07-01T15:06:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-12T11:18:31.000Z (about 7 years ago)
- Last Synced: 2024-06-21T18:49:21.874Z (about 2 years ago)
- Topics: api, wordpress
- Language: Go
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.go
- License: LICENSE
Awesome Lists containing this project
README
# WPORG
An API wrapper made to simplify fetching data from the WordPress.org APIs in Go.
## Examples
Get Latest Revision
```go
rev, _ := api.GetRevision("plugins")
rev, _ := api.GetRevision("themes")
```
Get Directory List
```go
plugins, _ := api.GetList("plugins")
themes, _ := api.GetList("themes")
```
Get Directory Changelog
```go
list, _ := api.GetChangeLog("plugins", current, latest)
list, _ := api.GetChangeLog("themes", current, latest)
```
Get Info
```go
info, _ := api.GetInfo("plugins", "gutenberg")
info, _ := api.GetInfo("themes", "twentytwelve")
```