An open API service indexing awesome lists of open source software.

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.

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")
```