Tag Archives: API

WordCamp Ann Arbor 2017 JavaScript Workshop

My First WCA2

Zac Gordon teaching JavaScript at WordCamp Ann Arbor

When I put out the call at the beginning of 2017 that I would like to start doing more JavaScript workshops, my good friend Kyle Maurer, from WordCamp Ann Arbor, was one of the first to invite me to come do a workshop.

The Workshop

I have continued to refine the JavaScript for WordPress workshop I have been doing and I think it continues to evolve into a solid workshop covering JS and WP API fundamentals while also building something practical.

In the workshop we cover the following:

  1. JavaScript Language Basics (Programming 101 w JS)
  2. The Document Object Model
  3. Events with the DOM & JavaScript
  4. The WordPress REST API
  5. How to pull the API into JavaScript in a stand alone and theme environment

Of course there was still more I would have liked to include, but I think we did a really good job.

Slide Deck and Resources

20171013_115246

Super Fun Getting to Know Some Students Working in the Field!

You can check out the slide deck and resources for the workshop over here on my 2017 WordCamp Ann Arbor landing page.

A Reflection on WCA2 Social Activities

One of the nice things that WordCamp Ann Arbor did well and a little different was to have non WordPress related breakout sessions on the first day where folks could group up and go on a range of activities from a walk through the Arboretum to Pub Crawling.

20171013_180427

Hanging out with WordCampers at WCA2 2017

At first I was hesitant of these plans, but it turns out it was brilliant and the perfect chance to know some other attendees more deeply.  I had a great time and enjoyed getting to know folks better.

Overall, great job WCA2!  I had heard about your camp for a while and you did not disappoint.  There is rumored to be four Michigan camps in 2018 so I look forward to making it back!

Congrats and well done to all the organizers for WCA2 2017!!!

Getting PayPal API Credentials for WooCommerce Refunds

You can process payments in WooCommerce with PayPal using only the account email.  However, in order to refund payments from within WooCommerce you must enter your PayPal API credentials.

Here are the steps for doing that:

  • Login to PayPal
  • Go to Profile > Profile and Settings
  • Click My Selling Tools
  • Go to API Access
  • Select NVP/SOAP API integration
  • Click to view API Username, Password and Signature
  • Add information into WooCommerce PayPal settings

I find it much easier to refund payment directly from within WooCommerce and not need to login to PayPal to refund manually in addition to from within WooCommerce as well.

Review of A Week of REST UK 2016

A big thanks goes out to Siobhan McKeown for following through on her idea from near a year ago (or more?) to have  A Week of REST.  The Day of REST conference earlier this year went quite well and plans were made to do a week long version of the conference where attendees would go in depth learning and building a project with JavaScript and the REST API.

I was quite honored to have the opportunity to work with Siobhan, Joe Hoyle and Ryan McCue  on this bootcamp, which aligned so well with my JavaScript for WordPress Master Course.

We started preparing a number of months ago, including meeting in person for a week to build the project and plan the course modules.  I did a nice writeup on our experience preparing for A Week of REST.

Welcome to Matlock

Matlock, UK is home to Human Made headquarters and the event took place in a quant local up the hills from the office amidst a beautiful pond and collection of stone cottages.

20160904_162231.jpg

The course flow went like this:

Day 1 – Setup and Introductions

  • Folks arrived starting around noon
  • We did an overview of the schedule and content
  • Helped get local develop environments setup
  • Hung out and got to know each other

Day 2 – Up and Running with JavaScript Development

  • A few folks came to the morning office yoga I offered
  • I took the first half of the day to do talk about JavaScript Development Tools, ES6 and React Basics
  • Joe took over in the afternoon to talk about the React boilerplate we were using with our app (and can also be nicely adapted for other projects )
  • That night we held a long informal Q&A that raised and answered a number of great questions

Day 3 – The Big Day of Authentication

  • A few more people came to morning yoga 🙂
  • Joe went over how to read posts from the WP API with a nice library he built and I did some exercises on using it with React
  • Ryan rocked the afternoon with an in depth walk through of Authentication, OAuth and the WP Broker they built.
  • By the end of the day we had our live blogging app authenticating with a WP site and pulling in content

Day 4 – Posting via the API & Leveraging Custom Content

  • A few morning folks joined in morning office yoga
  • Ryan walked through the WP Broker OAuth JavaScript library that Joe made for the workshop
  • Then Joe walked folks through the ins and outs of posting to WordPress via the API and JavaScript and working with custom post types and content
  • My work mostly involved doing some example exercises to bridge between the slides and building the project
  • It was pretty cool how fleshed out the Liveblog project was that we built over the week

Day 5 – Taking it Further

  • On the last day I talked about places online folks could go for further learning (including of course my JavaScript for WordPress Master Course)
  • Joe showed some extended features of our app that folks could use for taking things further
  • Then we discussed important related topics like React Native, Redux, React Router and more
  • I’m looking forward to hearing about a number of the projects that attendees had shared about doing

A Big Thanks to Everyone

Matt and Paul helping

Matthew Haines-Young and Paul de Wouters from Human Made were tremendously helpful, walking around helping folks all week.

The attendees, who ranged from full stack JavaScript developers to folks new to React and the API, and everyone did a great job helping one another.

Overall I had a great time and I think the event went really well.  I look forward to the next Week of REST, hopefully in the US 🙂

Joe, Ryan and Zac

What’s Next?

For now I suggest folks check out A Day of REST, a single day conference in Boston on March 9th that will give a big picture overview and real world examples of the WP API in action.

I can also share that a lot of what we covered in A Week of REST is also covered in my JavaScript for WordPress Master Course, which has an open enrollment coming up in the next month.

So, if you missed A Week of REST UK 2016, check out A Day of REST Boston 2017 and my JavaScript for WordPress Course to catch up!

 

 

 

Submit Your Questions for a Day of REST Conference

Screen Shot 2016-01-21 at 5.19.27 PM

Thanks to my JavaScript for WordPress Master Course partners at Human Made, I will be flying out London next week to attend the A Day of REST Conference.  I’m also offering a 20% discount on my course to anyone who attends the conference.

I view attending this conference and speaking with the presenters as an important part of preparing for my JS for WP course.

Since I will be there taking notes and asking questions, I wanted to extend an invitation for folks to send me questions that I can try to to get answered for you while there.

Here is the outline of the talks and speakers:

Take a look at the list of speakers and talks, and please post your questions as comments below!!!

I’ll post up the answers I find in a summary post of the event 🙂

BackPress – WordPress Stripped Naked

I came across BackPress while reading about the WordPress Plugin API a while back. Basically it provides all of the core actions and filters from WordPress core to be used outside of the WordPress environment.

Not sure when I’ll have the chance to work with the framework, but it looks really cool and an awesome solution for the right problem.

WP Seek WordPress Search Engine API

I was happy to stumble across the site wpseek.com, which works as an all things WordPress search engine.

What really impressed me though is their API, which let’s you do things like get specs on a specific function or a list of all WP functions.

For example using the following URL http://api.wpseek.com/?method=wordpress.getfunction&s=the_title will return a JSON object with the basic Codex info on the plugin.

I don’t see a way to get info like WP_Query, but this is still a cool resource if you’re trying to pull together some simple docs on the fly.

Thanks to Oliver Schlöbe for your great work!