Home > front end >  Of new questions: could you tell me how to call the HTTP front end interface
Of new questions: could you tell me how to call the HTTP front end interface

Time:09-22

This is our data: request method POST
http://114.116.228.205:42500

{
"Order", "login",
"Token" : "absdjkasjdkjakskdjwewe,"
"Grant_type", "android",
"LoginId: yyf,"
"LoginType" : "mobile_01,"
"PWD" : "1"
}
After the success of the below is our request to return data:
{" msgcode ":" 0 ", "MSG" : "success", "token" : "absdjkasjdkjakskdjwewe", "data" : {" deptId ":" 0000000016 ", "access_token" : "366 b7496b07141f9980d92d5e60934c1", "tags" : [adea21eb92f4f9cb4f4d8b3e09b4016 "0", "543 aca46ca9d4fa6b03b8f37459c186a"], "alias" : "yyf," "expires_in" : "3600"}}

Could you tell me how to call this interface, we how to write

CodePudding user response:

Can walk agent callback interface or with ajax set good request header is mainly according to the document

CodePudding user response:

reference 1/f, has nothing, tree ruthless reply:
can walk agent callback interface or with ajax set good request header is mainly according to the document

Is not very good can you send a code

CodePudding user response:

Is generally should not be done through axios or ajax interface call, and depends on what you use

CodePudding user response:

You also don't say with any framework, others how to write,,,

The corresponding method is different, different framework or baidu XMLHttpRequest

CodePudding user response:

http://jquery.cuishifeng.cn/jQuery.Ajax.html

CodePudding user response:

refer to the second floor callback___ response:
Quote: refer to 1st floor has nothing, tree heartless response:
can walk agent callback interface or with ajax set good request header is mainly according to the document

Is not very good
can send a code?
,,,,,,,,, you download a postmain then specialized test of the interface of the software will not ask again

CodePudding user response:

reference 3 floor sealing seal dust dust _ response:
is generally should not be done through axios or ajax interface call, and depends on what you use is

Oh well, whatever, as long as they can request

CodePudding user response:

reference 4 floor jio's reply:
you also don't say with any framework, others how to write,,,

The corresponding method is different, different framework or baidu XMLHttpRequest

Casually with anything, I just want to see you how to write

CodePudding user response:

reference 5 floor nian_cj reply:
http://jquery.cuishifeng.cn/jQuery.Ajax.html

Ok, I'll take a look at this link

CodePudding user response:

Jq ajax inside come with post and the get method, with the two with respect to ok

CodePudding user response:

references to the tenth floor N - N - N response:
jq ajax inside come with post and the get method, with the two with respect to ok.

Ok, thanks, I went to have a try

CodePudding user response:

https://blog.csdn.net/thebigdipperbdx/article/details/80071800
Change the url and parameters, in the example 1 to your own

CodePudding user response:

refer to 12 floor however reply:

https://blog.csdn.net/thebigdipperbdx/article/details/80071800Change the url and parameters, in the example 1 to your own

Well, I give it a try, thank you very much
  • Related