How to call Web API call inside custom module Magento 2 The Next CEO of Stack OverflowMagento 2 Custom Web Api callUnit test case for custom module REST APICall custom module API in magento2Is It possible if I will not add product in Magento2 database?How to get pdf file in response for Magento 2 rest api?Magento 2 Add third party library and how to call that File in Controller?How to get CustomerId in API in magento 2? and how magento gets customerId for the same?custom api to create customer in Magento2Magento2 Rest api without any moduleMagento 2 - Rest API add new custom request for home page slider
Pulling the principal components out of a DimensionReducerFunction?
What was Carter Burke's job for "the company" in Aliens?
Would a completely good Muggle be able to use a wand?
From jafe to El-Guest
Is it correct to say moon starry nights?
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Reshaping json / reparing json inside shell script (remove trailing comma)
Is it professional to write unrelated content in an almost-empty email?
How to use ReplaceAll on an expression that contains a rule
Players Circumventing the limitations of Wish
Easy to read palindrome checker
How many extra stops do monopods offer for tele photographs?
Help! I cannot understand this game’s notations!
Does higher Oxidation/ reduction potential translate to higher energy storage in battery?
Reference request: Grassmannian and Plucker coordinates in type B, C, D
What CSS properties can the br tag have?
AB diagonalizable then BA also diagonalizable
Is there a difference between "Fahrstuhl" and "Aufzug"?
free fall ellipse or parabola?
Can I calculate next year's exemptions based on this year's refund/amount owed?
Inexact numbers as keys in Association?
Help/tips for a first time writer?
In the "Harry Potter and the Order of the Phoenix" video game, what potion is used to sabotage Umbridge's speakers?
Is it convenient to ask the journal's editor for two additional days to complete a review?
How to call Web API call inside custom module Magento 2
The Next CEO of Stack OverflowMagento 2 Custom Web Api callUnit test case for custom module REST APICall custom module API in magento2Is It possible if I will not add product in Magento2 database?How to get pdf file in response for Magento 2 rest api?Magento 2 Add third party library and how to call that File in Controller?How to get CustomerId in API in magento 2? and how magento gets customerId for the same?custom api to create customer in Magento2Magento2 Rest api without any moduleMagento 2 - Rest API add new custom request for home page slider
How can we call Web API in a custom module?
I have a third party module, in which they are sending a request with API calls. I have custom functionality where I have to redirect my page to that Web API link, so everything works smoothly
Can anyone here tell, how we can do that in Magento2? Some step by step guide?
Thanks!
magento2 rest-api programmatically webapi
add a comment |
How can we call Web API in a custom module?
I have a third party module, in which they are sending a request with API calls. I have custom functionality where I have to redirect my page to that Web API link, so everything works smoothly
Can anyone here tell, how we can do that in Magento2? Some step by step guide?
Thanks!
magento2 rest-api programmatically webapi
what is your exact requirement ? You need just to redirect on a link ? Means say you have a controller from there you want to redirect on a link or call an API ?
– Narendra Vyas
2 days ago
Ya, If i use the default module they are using this linkttp://m2.example.com/rest/no/V1/guest-carts/uDa31URAYN4ZGmrgPlxEHTHJdrSLR34Z/test/checkout/authorize
.
– Daniel_12
2 days ago
I have one button where I want to redirect to this url
– Daniel_12
2 days ago
See my answer. If it help you
– Narendra Vyas
2 days ago
add a comment |
How can we call Web API in a custom module?
I have a third party module, in which they are sending a request with API calls. I have custom functionality where I have to redirect my page to that Web API link, so everything works smoothly
Can anyone here tell, how we can do that in Magento2? Some step by step guide?
Thanks!
magento2 rest-api programmatically webapi
How can we call Web API in a custom module?
I have a third party module, in which they are sending a request with API calls. I have custom functionality where I have to redirect my page to that Web API link, so everything works smoothly
Can anyone here tell, how we can do that in Magento2? Some step by step guide?
Thanks!
magento2 rest-api programmatically webapi
magento2 rest-api programmatically webapi
edited 2 days ago
Amrit Pal Singh
798523
798523
asked 2 days ago
Daniel_12Daniel_12
16810
16810
what is your exact requirement ? You need just to redirect on a link ? Means say you have a controller from there you want to redirect on a link or call an API ?
– Narendra Vyas
2 days ago
Ya, If i use the default module they are using this linkttp://m2.example.com/rest/no/V1/guest-carts/uDa31URAYN4ZGmrgPlxEHTHJdrSLR34Z/test/checkout/authorize
.
– Daniel_12
2 days ago
I have one button where I want to redirect to this url
– Daniel_12
2 days ago
See my answer. If it help you
– Narendra Vyas
2 days ago
add a comment |
what is your exact requirement ? You need just to redirect on a link ? Means say you have a controller from there you want to redirect on a link or call an API ?
– Narendra Vyas
2 days ago
Ya, If i use the default module they are using this linkttp://m2.example.com/rest/no/V1/guest-carts/uDa31URAYN4ZGmrgPlxEHTHJdrSLR34Z/test/checkout/authorize
.
– Daniel_12
2 days ago
I have one button where I want to redirect to this url
– Daniel_12
2 days ago
See my answer. If it help you
– Narendra Vyas
2 days ago
what is your exact requirement ? You need just to redirect on a link ? Means say you have a controller from there you want to redirect on a link or call an API ?
– Narendra Vyas
2 days ago
what is your exact requirement ? You need just to redirect on a link ? Means say you have a controller from there you want to redirect on a link or call an API ?
– Narendra Vyas
2 days ago
Ya, If i use the default module they are using this link
ttp://m2.example.com/rest/no/V1/guest-carts/uDa31URAYN4ZGmrgPlxEHTHJdrSLR34Z/test/checkout/authorize
.– Daniel_12
2 days ago
Ya, If i use the default module they are using this link
ttp://m2.example.com/rest/no/V1/guest-carts/uDa31URAYN4ZGmrgPlxEHTHJdrSLR34Z/test/checkout/authorize
.– Daniel_12
2 days ago
I have one button where I want to redirect to this url
– Daniel_12
2 days ago
I have one button where I want to redirect to this url
– Daniel_12
2 days ago
See my answer. If it help you
– Narendra Vyas
2 days ago
See my answer. If it help you
– Narendra Vyas
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
you can call to external API from inside Magento 2. Just use MagentoFrameworkHTTPZendClient inside your class.
Read more here.
A sample project here in Github
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267943%2fhow-to-call-web-api-call-inside-custom-module-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
you can call to external API from inside Magento 2. Just use MagentoFrameworkHTTPZendClient inside your class.
Read more here.
A sample project here in Github
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
add a comment |
you can call to external API from inside Magento 2. Just use MagentoFrameworkHTTPZendClient inside your class.
Read more here.
A sample project here in Github
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
add a comment |
you can call to external API from inside Magento 2. Just use MagentoFrameworkHTTPZendClient inside your class.
Read more here.
A sample project here in Github
you can call to external API from inside Magento 2. Just use MagentoFrameworkHTTPZendClient inside your class.
Read more here.
A sample project here in Github
answered 2 days ago
Narendra VyasNarendra Vyas
35911
35911
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
add a comment |
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
MagentoFrameworkHTTPAdapterCurl should be used
– Philipp Sander
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
can you give me pseudocode how to use that one
– Daniel_12
2 days ago
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267943%2fhow-to-call-web-api-call-inside-custom-module-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what is your exact requirement ? You need just to redirect on a link ? Means say you have a controller from there you want to redirect on a link or call an API ?
– Narendra Vyas
2 days ago
Ya, If i use the default module they are using this link
ttp://m2.example.com/rest/no/V1/guest-carts/uDa31URAYN4ZGmrgPlxEHTHJdrSLR34Z/test/checkout/authorize
.– Daniel_12
2 days ago
I have one button where I want to redirect to this url
– Daniel_12
2 days ago
See my answer. If it help you
– Narendra Vyas
2 days ago