Rest API url to get product details - woocommerce-rest-api

I am getting WooCommerce Product details using REST API. Here is the url I am using,
https://squatwolf.com/wc-api/v3?id&name&permalink&short_description&price&sale_price
It is not showing me the right products. What could be wrong with my request?

Maybe because you've not called the right end point. Try
https://squatwolf.com/wc-api/v3/products?id&name&permalink&short_description&price&sale_price

Related

One Signal REST API - Get the list of templates

How are you?
In principle, sorry for my English.
I need to work with an integration with One Signal REST API both for web and mobile application, but I can't find any endpoint to bring the templates (and I need them to include the id of the template in the request body as indicated in the documentation of "POST -> create notification")
Does anyone know if there is an endpoint that brings me the list of templates?
Thanks a lot
I confirm that (as of the date, OneSignal REST API v8) it's not possible to obtain the OneSignal template_id via REST API
got to OneSignal console
select the app
select Messages > Templates
select the template that you want to know its ID
get the ID from the URL, like shown in the image below

Get Woocommerce product reviews via rest api

I tried to get product reviews with rest api but I got an error woocommerce_rest_cannot_view
https://example.com/wp-json/wc/v3/products/reviews?product=ID
I don't know where is the problem
In some how it was an issue on woocommerce api
I edited the class-wc-rest-product-reviews.php
$prepared_args['type'] = 'review';
changed review to comment and it works

LinkedIn API reference

I'm trying to pull all the data associated with my companies LinkedIn page, but I can't figure out how to navigate the API... (I already have a bearer token).
I've looked at these reference fields, but the only GET request that gives me anything back is https://api.linkedin.com/v1/people/~?format=json and that gives me my personal profile info, which is not what I want.
If I change "people" to "visitors" for example, I get back:
"Unknown field {visitors} in resource {Root}"
Is there any documentation on what resources are available in {Root} or is there a GET request I can send that will show me the available resources?
Note: the only reason I'm using v1 here is because that's the only request I can get to work...
well, the V1 you are using is outdated. it will actually be terminated in March 2019. The reason why V2 is not working. is because V2 requires a LinkedIn partnership. you can request one here.
there are multiple ways you can request company data. for V1 it is called:
the manage company pages API, click here for more information
for V2 you should look at organization API, click here for more information
PS: im not sure if there is a way to get the root information. but hopefully this helps.

Facebook API Lead Ad webhook lead retrieval

I have setup a webhook for Facebook Lead Ads
It is receiving data like this:
{"object":"page","entry":[{"id":"718196074978224","time":1453818316,"changes":[{"field":"leadgen","value":{"ad_id":"399579767903","adgroup_id":"971076277715","created_time":1453789516,"form_id":"930912320812","leadgen_id":"151977133461","page_id":"718196074978224"}}]}]}
The next step is to retrieve the details.
The docs say
https://graph.facebook.com/v2.5/
but if I use the leadgen_id (151977133461) this returns
"singular published story API is deprecated for versions v2.4 and higher"
I've also read that _ might work, but that returns a different error.
Answered my own question: subscribed_apps wasn't set up correctly
You just need page access token to retrive the values from the lead. You need to make a GET call on
https://graph.facebook.com/v2.11/<leadgen_id>?access_token=<page_access_token>
For more info go through this link it will help you: http://tanmayverma.com/reactjs/storing-facebook-lead-data-in-our-database-in-real-time-using-reactjs-meteorjs-and-fbs-javascript-sdk/

rest client in pentaho

I am very new to the pentaho data integration tool.
I want to consume a restful service(post web service) from my pentaho. For that i found that i should use a rest client. But when i give the url and body(as i want to consume post service) it is not making the necessary changes in the database.
Can anyone tell me how to give body in the rest client in pentaho? i suspect that there is some different way to give the body in the body field of rest client.
I am attaching the screenshot of the rest client which i am making.
Also can anyone suggest me some good links where i can find tutorials for pentaho.
In PDI, you need to receive rows, and process them in the next step.
For this case, as stated in the forum, you first need the "GENERATE ROWS" step, to make at least one call to the REST webservice.
Remember to generate only 1 row, else, you will make a X number of calls to the REST webservice.
Then, in the "REST CLIENT" step, choose the field that is generating the row with the URL in the attribute "Accept URL from field".
Hope it helps.
Use Generate Rows for your url then pass that to the REST Client and use the 'Accept URL from field'. That's the only I found it to work.