URL url = new
URL("https://uat.tickermarket.com/TPILWebAPI/Api/V1/Data/PremFut");
HttpURLConnection http = (HttpURLConnection)url.openConnection();
http.setRequestMethod("POST");
http.setDoOutput(true);
http.setRequestProperty("Accept", "application/json");
http.setRequestProperty("Content-Type", "application/json");
http.setRequestProperty("Authorization", "Bearer GciOiJIUzUxMiJ9.eyJzdWIiOiJERkRFTU8wMDAxICAgICAiLCJleHAiOjE2MjkyMTEyNDMsImlhdCI6MTYyOTE5MzI0M30.7GQJ_UxBecVe-");
String data = "{\n  \"sid\": 19,\n  \"instId\": 4,\n  \"rType\": 1,\n  }";
byte[] out = data.getBytes(StandardCharsets.UTF_8);
OutputStream stream = http.getOutputStream();
stream.write(out);
System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
http.disconnect();
                 
                
                  
                        
                        
                                var  url = "https://uat.tickermarket.com/TPILWebAPI/Api/V1/Data/PremFut");
                                var httpRequest= (HttpWebRequest) WebRequest.Create(url);
                        
                                http.setRequestMethod("POST");
                                httpRequest.Accept("application/json");
                                http.Headers("Authorization", "Bearer GciOiJIUzUxMiJ9.eyJzdWIiOiJERkRFTU8wMDAxICAgICAiLCJleHAiOjE2MjkyMTEyNDMsImlhdCI6MTYyOTE5MzI0M30.7GQJ_UxBecVe-");
                                httpRequest.ContentType("application/json");
                        
                                var data = "{\n  \"sid\": 19,\n  \"instId\": 4,\n  \"rType\": 1,\n  }";
                                Using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
                                {
                                streamWriter.Write(data);
                                }
                        
                                var httpResponse = (HttpWebResponse) httpRequest.GetResponse();
                                using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
                                {
                                Var result= streamReader.ReadToEnd();
                                }
                                Console.WriteLine(httpResponse.StatusCode);
                            
                 
                
                  
                        
                        
                              ?php
                                $url = ("https://uat.tickermarket.com/TPILWebAPI/Api/V1/Data/PremFut");
                                $curl = (curl_init($url));
                                curl_seropt($curl, CURLOPT_URL, $url);
                                curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
                        
                                $headers = array("Authorization":"Bearer GciOiJIUzUxMiJ9.eyJzdWIiOiJERkRFTU8wMDAxICAgICAiLCJleHAiOjE2MjkyMTEyNDMsImlhdCI6MTYyOTE5MzI0M30.7GQJ_UxBecVe-" , Content-Type : application/json);
                                Curl_setopt($curl ,, CURLOPT_HTTPHEADER, , $headers);
                        
                                $data= DATA{ {
                                "sid" : 19,
                                "instId" : 4,
                                "rType": 1
                                };
                        
                                Curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
                                $resp=curl_exec($curl);
                                curl_close($curl);
                                var_dump($resp);
                                ?>
                            
                 
                
                  
                        
                        
                                Import requests
                                From requests.structure import CaseInsensitiveDict
                                url = ("https://uat.tickermarket.com/TPILWebAPI/Api/V1/Data/PremFut");
                                headers = CaseInsensitiveDict()
                        
                                headers [ "Accept"] = "application/json"
                                headers["Authorization"] = " Bearer GciOiJIUzUxMiJ9.eyJzdWIiOiJERkRFTU8wMDAxICAgICAiLCJleHAiOjE2MjkyMTEyNDMsImlhdCI6MTYyOTE5MzI0M30.7GQJ_UxBecVe- "
                                headers["Content-Type"] = "application/json"
                        
                                data= """
                                {
                                "sid" : "19",
                                "instId": "4",
                                "rType": "1"
                                }
                                """
                        
                                resp = request.post(url, headers=headers, data=data)
                                print(resp.status_code)
                            
                 
                
                  
                        
                        
                                Var url=("https://uat.tickermarket.com/TPILWebAPI/Api/V1/Data/PremFut" )
                                Var xhr = new XMLHttpRequest();
                        
                                xhr.open("POST", url);
                                xhr.setRequestHeader("Accept","application/json" );
                                xhr.setRequestHeader("Authorization","Bearer GciOiJIUzUxMiJ9.eyJzdWIiOiJERkRFTU8wMDAxICAgICAiLCJleHAiOjE2MjkyMTEyNDMsImlhdCI6MTYyOTE5MzI0M30.7GQJ_UxBecVe- " );
                                xhr.setRequestHeader(Content-Type, "application/json" );
                                xhr.onreadystatechange= function() {
                                if(xhr.readyState = = = 4)
                                {
                                Console.log(xhr.status);
                                Console.log(xhr.responseText);
                                }};
                        
                                Var data = '{
                                "sid" : 19,
                                "instId" : 4,
                                "rType": 1
                                }';
                        
                                Xhr.send(data);
                                Console.log(xhr.status);
                            
                 
                
                  
                            
                                
                                #! /bin/bash
                                #Login:
                                
                                curl -d  "{ \ username\" :  \ "ABB \" , \"password\" : \"password\"}" "-H content-type: application/json" " https://uat.tickermarket.com TPILWebAPI/Api/V1/Users/Login"
                                Curl -X POST https://uat.tickermarket.com/TPILWebAPI/Api/V1/Data/PremFut   -H "Authorization: Bearer GciOiJIUzUxMiJ9.eyJzdWIiOiJERkRFTU8wMDAxICAgICAiLCJleHAiOjE2MjkyMTEyNDMsImlhdCI6MTYyOTE5MzI0M30.7GQJ_UxBecVe-"  -H
                                "Content-Type: application/json"
                                
                                - - data-binary @- << DATA
                                {
                                "sid" : "19",
                                "instId": "4",
                                " rType": "1""
                                }
                                DATA