Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
331 views

Curl request doesn't login to my API, why?

I've been working on this code to log in to my API. But every time I try to login using CURL I get the following error {"message":"The request entity's media type 'multipart/form-data' ...
Zyzzx's user avatar
  • 81
2 votes
1 answer
2k views

Magento 2 Api/Data, When To Create It?

I have fairly simple REST API request to get guest country code by his ip. In my block file this works perfectly fine when using curl: $url = "http://........./".$guestIp."?access_key=".$...
Trenox's user avatar
  • 407
1 vote
1 answer
355 views

Magento2 : Getting error while updating the data using API

I am getting the following error while updating the record using the Magento 2 REST API. Error: ( [message] => Request does not match any route. [trace] => ) I am ...
satya's user avatar
  • 11
0 votes
1 answer
5k views

Guide for API to third party application from inside Magento 2

The important questions i would like to know are: Can I call a CURL from inside a Model or ResourceModel? Is there any standardized way to handle API's to third party apps? Please keep in mind that, ...
Midlaj's user avatar
  • 397
1 vote
3 answers
6k views

SOLVED - Api token request Curl returns NULL

I am trying to get a token from my Magento 2 API, my script returns NULL, the call is working fine in Postman and generating a token : $adminUrl='https://www.xxxxxxx.com/rest/V1/integration/admin/...
Ismail Berlin's user avatar
0 votes
1 answer
2k views

Magento 2 rest API returns false when trying to get a token

I am trying to create a web app that gets data from a Magento 2 website thanks to the API, following this tutorial but it returns bool(false) when I do var_dump($token) I have read other threads on ...
Tokipudi's user avatar
4 votes
3 answers
9k views

Magento 2 searchCriteria using REST APIs

I have the following query: $url = http://kostakfashion.com/rest/V1/products/?searchCriteria[filter_groups][0][filters][0][field]=category_gear&searchCriteria[filter_groups][0][filters][0][...
ibrahim's user avatar
  • 41
2 votes
1 answer
2k views

Magento 2 search using REST APIs

I'm getting crazy with PHP curl and query string against Magento 2 REST Api. I have the following query: http://mystore/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=...
salgua's user avatar
  • 181