Skip to content

wpdirectory/wporg

Repository files navigation

WPORG

An API wrapper made to simplify fetching data from the WordPress.org APIs in Go.

Examples

Get Latest Revision

rev, _ := api.GetRevision("plugins")

rev, _ := api.GetRevision("themes")

Get Directory List

plugins, _ := api.GetList("plugins")

themes, _ := api.GetList("themes")

Get Directory Changelog

list, _ := api.GetChangeLog("plugins", current, latest)

list, _ := api.GetChangeLog("themes", current, latest)

Get Info

info, _ := api.GetInfo("plugins", "gutenberg")

info, _ := api.GetInfo("themes", "twentytwelve")

About

An API wrapper for the WordPress.org APIs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages