[wga]
Shortcode to obtain resources from official GitHub API v3.
NOTE: WPGitHubAPI plugin uses transients to cache the counts for 24 * HOUR_IN_SECONDS
.
[wga]
shortcode accepts following parametersu='api_url'
whereapi_url
is the part of API afterhttps://api.github.com/
E.g.users/ahmadawais
will return my profile data.d='data'
wheredata
is the object's data you want to retrieve E.g.followers
will return the number of followers for my profile.- GitHub Readme Parser with
r='y'
attribute in the shortcode. - Remove
h1
withh1=y|n
attribute in the shortcode. - Convert
h1
toh2
withh2=y|n
attribute in the shortcode.
- My GitHub Followers Count:
[wga u='users/ahmadawais' d='followers']
- For more examples read GitHub API Documentation or visit GitHub API.
- WGA shortcode
- WGA Documentation
You can use GitHub Updater to receive updates for this plugin.
- IMPROVE: Gracefully show the GitHub repo link on API rate limiting.
- IMPROVE: PHP 7 compat β thanks to @tfirdaus for PR #1.
- FIX: PHP CS Issues like weird spacing and tabs.
- NEW: Transients below 172 characters.
- NEW: Should there be
h1
withh1=y|n
. - NEW: Should convert
h1
toh2
withh2=y|n
.
- NEW: Basic PHPUnit tests.
- NEW: GitHub Readme Parser with
r='y'
attribute in the shortcode.
- WP.org Repo submission.
- NEW:
README.txt
.
- NEW: Custom transients names with API_URL and Data.
- NEW: Regex Remove
/
in the beginning or at the end.
- FIX: Custom data related transients.
- First beta version.
Licensed under GNU GPL v2.0. Copyright (C) 2016 Ahmad Awais.
π WPCOUPLE PARTNERS:
This open source project is maintained by the help of awesome businesses listed below. What? Read more about it β