{"id":21893746,"url":"https://github.com/micc83/github-api-3-client-for-wordpress","last_synced_at":"2026-04-16T03:32:24.984Z","repository":{"id":9198526,"uuid":"11006035","full_name":"micc83/GitHub-API-3-Client-for-WordPress","owner":"micc83","description":"A simple class to query GitHub API v3.0 from WordPress","archived":false,"fork":false,"pushed_at":"2013-07-01T10:12:08.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-27T04:09:36.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micc83.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-27T19:40:08.000Z","updated_at":"2013-10-24T03:26:12.000Z","dependencies_parsed_at":"2022-08-30T06:10:29.619Z","dependency_job_id":null,"html_url":"https://github.com/micc83/GitHub-API-3-Client-for-WordPress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micc83/GitHub-API-3-Client-for-WordPress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FGitHub-API-3-Client-for-WordPress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FGitHub-API-3-Client-for-WordPress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FGitHub-API-3-Client-for-WordPress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FGitHub-API-3-Client-for-WordPress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micc83","download_url":"https://codeload.github.com/micc83/GitHub-API-3-Client-for-WordPress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FGitHub-API-3-Client-for-WordPress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T13:16:32.154Z","updated_at":"2026-04-16T03:32:24.960Z","avatar_url":"https://github.com/micc83.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"GitHub API 3 Client for WordPress\n=================================\n\nA simple class to query GitHub API v3.0 from WordPress\n\n## Documentation\n\nAs first go to https://github.com/settings/applications, create an application and get both **Client ID** and **Client Secret**.\nAfter that just include **class-wp-github-client.php** in your plugin or theme folder.\nThat's it, check the following example, to understand how Wp_Github_Client works.\n\n### Example\n\n```php\n// Include the client\nrequire_once( 'class-wp-github-client.php' );\n\n// Configure the client, at first run you'll be asked for permission\n$github_client = new Wp_Github_Client( array(\n    'app_name'      =\u003e  'My application name',\n    'client_id'     =\u003e  'client_id',\n    'client_secret' =\u003e  'client_secret',\n    'scope'         =\u003e  'gist'\n) );\n\n// Create a new gists\n$github_client-\u003epost( '/gists', array(\n    'description'   =\u003e  'the description for this gist',\n    'public'        =\u003e  true,\n    'files'         =\u003e  array(\n    'file1.txt'     =\u003e  array(\n        'content'   =\u003e  'String file contents'\n        )\n    )\n) );\n\n// Get starred gists of the current user\nvar_dump( $github_client-\u003eget( '/gists/starred' ) );\n\n// Delete a gist by ID\n$github_client-\u003edelete( '/gists/5875745' );\n\n// Update an existing gist\n$github_client-\u003epatch( '/gists/5875558', array(\n    'description' =\u003e 'the description for this gist changed'\n) );\n\n// Star a gist\n$github_client-\u003eput( '/gists/5875706/star' );\n\n// Get all the gist of the current user after a given date\n$datetime = new DateTime('2012-07-26 23:21:46');\n\nvar_dump( $github_client-\u003eget( '/gists', array(\n    'since' =\u003e $datetime-\u003eformat(DateTime::ISO8601)\n) ) ); \n```\nFor a full list of GitHub API 3 resources check here: http://developer.github.com/v3/\n\n## Support and contacts\n\nIf you need support you can find me on [twitter](https://twitter.com/Micc1983) or comment on the dedicated page on my [website](http://codeb.it/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicc83%2Fgithub-api-3-client-for-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicc83%2Fgithub-api-3-client-for-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicc83%2Fgithub-api-3-client-for-wordpress/lists"}