v1 API Support
ataylorme opened this issue · comments
Dribbble v1 API: Beta Than Ever
Currently in beta and subject to change, but we hope to mark it as a stable release soon.
The original Dribbble API is still available but will be retired on April 8, 2015.
source
I created a branch new-api for testing v1 of the Dribbble API and have existing functionality working with the new API
Looking at adding a toggle to automatically grab new Dribble shots after the initial import it run.
This would probably use wp_schedule_event to trigger a function that requests all shots for the current day using the date parameter of the new API.
Did some more cleanup.
- Switched from
get_posts
toWP_Query
- Switched from
file_get_contents
towp_remote_get
- Made API key an option rather than hard-coding
- Removed
wp_unschedule_event
after initial import; Import now runs hourly
Did you push this to SVN yet?
On Mon, Dec 29, 2014 at 9:03 AM, Andrew Taylor notifications@github.com
wrote:
Did some more cleanup.
- Switched from get_posts to WP_Query
- Switched from file_get_contents to wp_remote_get
http://codex.wordpress.org/Function_Reference/wp_remote_get- Made API key an option rather than hard-coding
- Removed wp_unschedule_event after initial import; Import now runs
hourly—
Reply to this email directly or view it on GitHub
#4 (comment).
Chris Wallace
Principal Creative // Lift
mobile 314-406-9109
skype chriswallace7
email/gtalk chris@liftux.com
No, just a Git branch for now. The new Dribbble API is still in Beta and subject to change. I set a milestone on this for April, when the current API will be deprecated. We can merge prior if the new API comes out of Beta.
The old api is new deprecated. The plugin in .org plugin repo is broken. I test the new-api branch, everything appears to work as expected with one exception. Without jetpack installed, portfolio cpt isn't created.
see:
Line 81 in a98135a
Seems counter-intuitive to me, but perhaps it's because I was just doing a quick code review.