Login Partner Instaforex Benefits




Login Partner Instaforex Benefits. 30,. ,:. ,. . : (). ( ) - PIN - . . 30. - 1.. : 3 000 000,,. . . Insta Service Ltd raquo API - -,. . -, - API. API,. API - -. API,,,,,,,. API-,. -,. -. IP API IP. API,. PHP Login 0 Deve ser alterado apiPassword senha Deve ser Modificado array de dados (Login Login, Senha apiPassword) datatring jsonencode (dados) apiAuthenticationMethod deve ser alterado ch curlinit (client-api. instaforex. org. apiAuthenticationMethod) curlsetopt (ch, CURLOPTCUSTOMREQUEST, POST) Curlsetopt (ch, CURLOPTPOSTFIELDS, datastring) curlsetopt (ch, CURLOPTRETURNTRANSFER, true) curlsetopt (ch, CURLOPTHTTPHEADER, array (Content-Type: applicationjson, Content-Length:. Strlen (datastring))) token curlexec (ch) curlclose (ch) ApiMethodUrl deve ser alterado ch curlinit (client-api. instaforex. org. apiMethodUrl. Login) possivelmente deve ser alterado parte com Login. Depende do metodo param curlsetopt (ch, CURLOPTCUSTOMREQUEST, GET) curlsetopt (ch, CURLOPTHTTPHEADER, array (senha:.token)) resultado curlexec (ch) resultado de eco C usando o sistema usando System. Collections. Generic usando System. Linq usando o sistema. Http usando System. Http. Formatting usando System. Text public void TestMethod () const int login 000000 const string pass your pass token var GetToken (login, pass) var resultado GetCommissionRecords (login, token) foreach (var trade in result) Console. WriteLine (, trade. Partner, trade. BalanceRecords. Count) string publica GetToken (int login, senha de string) var client new HttpClient () HttpContent tokenContent new ObjectContent (typeof (AccessTokenRequest), novo AccessTokenRequest, novo JsonMediaTypeFormatter ()) var token client. PostAsync (client-api. instaforex. orgapiAuthenticationRequestPartnerApiToken, tokenContent).Result. Content. ReadAsStringAsync (). Result token token public Lista GetCommissionRecords (int login, token de string) var client new HttpClient () Client. DefaultRequestHeaders. Add (senha, token) var resultado client. GetAsync (string. Format (client-api. instaforex. orgpartnerGetCommissionRecords, login)). Result. Content. ReadAsAsync ().Result return result public class AccessTokenRequest public int Login public Sequencia de caracteres Senha raquo