Home > Net > .net rookie, a great god guidance, urgent urgent
.net rookie, a great god guidance, urgent urgent
Time:11-19
Just hired company recently sent me an interface documentation, call I write my own a set of program to invoke the relevant interface, What all don't understand, ask for advice, urgent urgent
He is not told you all the links and the yao, you two get written in webapi, post method
CodePudding user response:
Simulation request call? WebClient HttpWebRequest, HttpClient, RestSharp what to wear
CodePudding user response:
Using HttpClient, the parameters in the step-by-step to interface address, look back to what type, really don't want to write code using the postman tool can also,
CodePudding user response:
That is to say he interfaces with you as long as the call, but before calling you are short of two things 1, obtained by the BIM data center to distribute the unique identification of the key, the key as a unique identifier platform identity Token
2, get SSO distributed authentication password, as the safety certification logo only bimapikey The two things to ask old employees, Join me write demo, use the ajax request: This is the url: $. Ajax ({ Url: "jwfs.test.spdspd.com/bim/api/v2/interface Controler name/the method name," Headers: {' Accept ':' application/json, 'Authorization' : 'Bearer' + Token }, Data: {bimapikey: bimapikey } Success: the function () {
}});
CodePudding user response:
I'm just looking forward to your post to points well,,,,,,,,,,,,,,,,,,,,,
CodePudding user response:
The rabbit family - second brother reply: That is to say he interfaces with you as long as the call, but before calling you are short of two things 1, obtained by the BIM data center to distribute the unique identification of the key, the key as a unique identifier platform identity Token
2, get SSO distributed authentication password, as the safety certification logo only bimapikey The two things to ask old employees, Join me write demo, use the ajax request: This is the url: $. Ajax ({ Url: "jwfs.test.spdspd.com/bim/api/v2/interface Controler name (controller is me to write? Or is looking for older workers take? /method name ( I don't know how to write a method here, he is not have more than one interface? Don't I want an interface to write a method? Can you give me to write about it? Means can you help me to write down all the complete, ok? Best give me to write a complete small demo, so that I can more clear understanding, please ). " Headers: {' Accept ':' application/json, 'Authorization' : 'Bearer' + Token }, Data: {bimapikey: bimapikey } Success: the function () { (and here) }});