Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 574 Bytes

File metadata and controls

33 lines (23 loc) · 574 Bytes

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