https://github.com/gedex/wp_instagram_client
Library to help WordPress developer working with Instagram API
https://github.com/gedex/wp_instagram_client
Last synced: over 1 year ago
JSON representation
Library to help WordPress developer working with Instagram API
- Host: GitHub
- URL: https://github.com/gedex/wp_instagram_client
- Owner: gedex
- License: gpl-3.0
- Created: 2013-04-15T05:52:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-29T22:50:21.000Z (almost 13 years ago)
- Last Synced: 2025-02-15T08:24:32.772Z (over 1 year ago)
- Language: PHP
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WP_Instagram_Client — Library to help WordPress developer working with Instagram REST API.
## Features
* Small and readable code.
* Use WordPress HTTP request API.
* Filters available to manipulate parameters.
* Include examples for starting guide.
* No PHP Session call, you decide how to make the token persistent (good example can be found in `examples`).
## Examples
The examples, found in `examples` directory, are intended for starter kit and
learning purpose and SHOULD NOT be used for production site. Here's how to play
with the examples:
1. I encourage you to create a child theme from your active theme. Lets name it
`twentytwelve_child`.
2. Go to `twentytwelve_child` directory and clone `WP_Instagram_Client` repo.
~~~text
$ git clone https://github.com/gedex/WP_Instagram_Client.git
~~~
3. Include one of the example in `twentytwelve_child`'s `functions.php`.
~~~php
require_once( STYLESHEETPATH . '/WP_Instagram_Client/examples/widget_recent_media.php' );
~~~
4. Go to
It's best to start from `/WP_Instagram_Client/examples/authorization.php` as it contains
the basic server-side flow used to obtain the access token.
### authorization.php
Example to demonstrate authorization using `WP_Instagram_Client`. This demo will add sub menu page
to the Settings menu where it renders a button to authorize the app. Once authorized,
you should be able to see the twitter screen_name.
### widget_recent_media.php
Example to demonstrate rendering collection of the most recent Tweets and retweets posted by
the authenticating user and the users they follow using `WP_Instagram_Client`. This demo will add
sub menu page to the Settings menu where it renders a button to authorize the app. Once authorized,
you should be able to see the twitter screen_name and the widget will be able to fetch the tweets.
## Running Test
**WIP** and will be in `test` directory.
## License
Copyright (C) 2013 Akeda Bagus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .