{"id":18320206,"url":"https://github.com/gedex/wp_twitter_client","last_synced_at":"2025-04-09T14:24:02.568Z","repository":{"id":7767267,"uuid":"9135919","full_name":"gedex/WP_Twitter_Client","owner":"gedex","description":"Library to help WordPress developer working with Twitter REST API.","archived":false,"fork":false,"pushed_at":"2013-04-04T06:53:04.000Z","size":160,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T08:24:26.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gedex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-31T20:29:02.000Z","updated_at":"2015-10-04T04:05:09.000Z","dependencies_parsed_at":"2022-09-09T14:10:42.161Z","dependency_job_id":null,"html_url":"https://github.com/gedex/WP_Twitter_Client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FWP_Twitter_Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FWP_Twitter_Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FWP_Twitter_Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2FWP_Twitter_Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/WP_Twitter_Client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054358,"owners_count":21039986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-05T18:15:33.028Z","updated_at":"2025-04-09T14:24:02.550Z","avatar_url":"https://github.com/gedex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"WP_Twitter_Client \u0026mdash; Library to help WordPress developer working with Twitter REST API.\n\n## Features\n\n* Small and readable code (just one main file, three hundred lines including comments).\n* Use WordPress HTTP request API.\n* Filters available to manipulate OAuth parameters.\n* Include examples for starting guide.\n* NO PHP Session call, you decide how to make the token persistent (good example can be found in `examples`).\n\n## Examples\n\nThe examples, found in `examples` directory are intended for starter kit and\nlearning purpose and SHOULD NOT be used for production site. Here's how to\nplay with the examples:\n\n1. I encourage you to create a child theme from your active theme. Lets name it\n   `twentytwelve_child`.\n\n2. Go to `twentytwelve_child` directory and clone `WP_Twitter_Client` repo.\n\n  ~~~text\n  $ git clone https://github.com/gedex/WP_Twitter_Client.git\n  ~~~\n\n3. Include one of the example in `twentytwelve_child`'s `functions.php`.\n\n  ~~~php\n  require_once( STYLESHEETPATH . '/WP_Twitter_Client/examples/widget_home_timeline.php' );\n  ~~~\n\n4. Go to https://dev.twitter.com/apps, create an app and note the `consumer_key` and\n   `consumer_secret`. Open the example you're going to use and find following lines:\n\n   ~~~php\n   define( 'CONSUMER_KEY',    'DL9ziNzAbLmShjW8sSYxw' );\n   define( 'CONSUMER_SECRET', 'l5NCQTBHv4VNVAIx0rb6R1oRoh21XPuqiy0kAfw8xnQ' );\n   ~~~~\n\n   Replace it with your own `consumer_key` and `consumer_secret`.\n\nIt's best to start from `/WP_Twitter_Client/examples/authorization.php` as it contains\nthe basic OAuth flow used to obtain the access token.\n\n### authorization.php\n\nExample to demonstrate authorization using `WP_Twitter_Client`. This demo will add sub menu page\nto the Settings menu where it renders a button to authorize the app. Once authorized,\nyou should be able to see the twitter screen_name.\n\n### widget_home_timeline.php\n\nExample to demonstrate rendering collection of the most recent Tweets and retweets posted by\nthe authenticating user and the users they follow using `WP_Twitter_Client`. This demo will add\nsub menu page to the Settings menu where it renders a button to authorize the app. Once authorized,\nyou should be able to see the twitter screen_name and the widget will be able to fetch the tweets.\n\n\n## Running Test\n\n**WIP** and will be in `test` directory.\n\n## License\n\nCopyright (C) 2013  Akeda Bagus \u003cadmin@gedex.web.id\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fwp_twitter_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Fwp_twitter_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fwp_twitter_client/lists"}