Google Shopping API - deleting data. What do i use as the id? - google-shopping-api

Which of the fields below do i use as an id?
Trying id always gives a 400 so I am unsure what to use. I have tried the test console and this doesn't work.

If you just delete the product from the website it will remove it from the feed.
- Google Support

The rest ID to use consists of
channel:language:targetcountry:productid
so for the above example the rest id would be
online:en:NZ:118042

Related

Magento SOAP API - getting product attachments

I am using SOAP API for Magento to get every data about products made in Magento. So far, everything went juuust fine, you get get everything using API commands which are in Magento documentation.
However, I am stuck with attachments. There is a attribute in Magento called "Attachments" for each product and it contains links to pdf files. I tried every API and trick including exports and filters and I can't get that data. Unfortunately, I can work only with API and SOAP v1.
I tried "product_downloadable_link.list" of course, but I get an error: "Caught exception: Incorrect product type. Downloadable content, can be added only to "downloadable" products."
Any advice would be appreciated. Thanks!
Magento 1 or Magento 2?
Also if will be helpful if you provide the API endpoint that you are using, and if this is a Magento 2, the custom attributes are retrievable via extension attributes.

Get Data from Shopify using JQuery Ajax

I am building an application where I need to fetch data from my Shopify account using Jquery Ajax. I have gone through documents provided by Shopify, but I have not landed to any solution yet because the documentation provided by Shopify does not make any sense. Please provide solution if you guys have any.
You have this help page : https://help.shopify.com/en/api/reference/customers/customer#
this url is available :
GET /admin/api/2019-04/customers.json
this retrieves a list of customers.
The documentation show you how to :
Retrieve all customers for a shop
GET /admin/api/2019-04/customers.json
Retrieve all customers after a specified ID
GET /admin/api/2019-04/customers.json?since_id=207119551
Retrieve all customers changed after a certain date
GET /admin/api/2019-04/customers.json?updated_at_min=2019-04-17 19:42:24
Retrieve a list of specific customers
GET /admin/api/2019-04/customers.json?ids=207119551,1073339460
You just have to do a GET call.
This link show you how do you have to do : https://guide.freecodecamp.org/jquery/jquery-ajax-get-method/

Laravel Nova - output forms on front end?

I am building a system that uses Laravel Nova for managing resources.
There are a couple of instances where I want non-admin users to be able to create resources. The ideal solution would be to define the resource in Nova and embed Nova's own create form on the front end of the site.
Has anyone done anything similar, or have any suggestions how to go about this?
I believe you can use the same endpoints that Nova is using.
For example to get all the fields of a resource:
GET updating fields:
http://{url}/nova-api/{resource}/{id}/?editing=true&editMode=update
GET creation fields:
http://{resource}/nova-api/{resource}/creation-fields?editing=true&editMode=create=
After the user has filled out the fields, you can use this endpoint to save the new values:
PUT:
http://{url}/nova-api/{resource}/{id}

Categorised Product Search & Store In Database

Here I am looking for an API for product search which can return me following things:
Categories of products so that user can click on particular category and search exactly what they want.
List of products with some information like title,description,price,url and image etc
Finally I want to store product information in my database
I looked at google shopping API but its deprecated. Checked for google commerce search but its not having category thing. One more API I found is https://www.semantics3.com which is good but need to pay. I may missed something in my research and you guys may help me with this, so:
Is there any possibility of using google shopping API OR google commerce search?
If I go for any paid API then I want to have some suggestions over this, so that I can use best solution.
TIA
Jaya

Use Magento rest API with multi store view

I have a Magento website with 3 languages on 3 different store view. I need to retrieve product information through the rest API, accessing to this address:
http://-mysite-/api/rest/products
It works really fine, but I receive data only from the default store view. In my webapp I need to switch languages, and I need to access to the others store view. I read the documentation (http://www.magentocommerce.com/api/rest/introduction.html), but I cannot find anything about store view and multilingual sites... I tried passing language in the header or passing the store_id as "get variable"... nothing, it works only with the default store view. Any idea?
You can try this. magentomysite/api/rest/products/store/storeid . For example you can use as magentomysite/api/rest/products/store/1 for english store products.
Remember one thing. In the admin panel you have to give permissions to guest user also. Then only you can get the data through this url.
I hope this helps u.
To elaborate on Pavan's answer the following URL worked for me:
magentodomain.com/api/rest/products/:product_id/store/:store_id
You can find your store id with the following method explained in this answer:
How to find out what my store ID is?

Resources