Skip to main content
Question

Getting Started with APIs

  • November 4, 2016
  • 4 replies
  • 30 views

Forum|alt.badge.img

I am trying to connect to Woocommerce's API and extract some information and then tie orders to a map service and update a field. I am really new to working with API's and need some basic info on what I need to start. I would like to make a call to the API statement below and return a table, this is similar to the Workbench I have attached. Any help from existing documentation or a start on a work bench would be great. Thanks

 

API Call Doc: http://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-orders

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

Forum|alt.badge.img+2
  • November 4, 2016

I think HTTPCaller should do it for you. The URL will be similar to the WooCommerce API documentation example you reference:

https://example.com/wp-json/wc/v1/orders using a GET and where example.com is your website.

The header name in the HTTPCaller will be consumer_key and the value of will be your API key. Don't include the colon (:) in the header name. FME will do that for you. Something like:


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • November 5, 2016

I think HTTPCaller should do it for you. The URL will be similar to the WooCommerce API documentation example you reference:

https://example.com/wp-json/wc/v1/orders using a GET and where example.com is your website.

The header name in the HTTPCaller will be consumer_key and the value of will be your API key. Don't include the colon (:) in the header name. FME will do that for you. Something like:

Tip: for readability I usually set the Response Body Encoding to system default (fme-system)

 

 


erik
Participant
Forum|alt.badge.img+1
  • Participant
  • December 26, 2018

How would the workpace look like, if you want to get all the geometries of all the Strava activities?


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • December 26, 2018

How would the workpace look like, if you want to get all the geometries of all the Strava activities?

Hi @erik

Please,check the Workspace uploaded by @piercexc. There is a Bookmark called Create GeoJSON geometry.

 

Thanks,

Danilo