//request URL avec la librairie Oauth et les logs du compte dev stib private void RequestUrl() { OAuth_CSharp oauth = new OAuth_CSharp("dH8vA2I1PREqcTOJqfO2kUgDWq4a", "4UBJu7NZYHCLLhIzJ5zA6FbCa48a"); string requestURL = oauth.GenerateRequestURL("https://opendata-api.stib-mivb.be/OperationMonitoring/1.0/VehiclePositionByLine/93%2C92", "GET"); requestedURL = requestURL; }
private string GetRequestURL(string HTTP_Method, TsaBarcode tsaBarcode) { List <string> parameters = new List <string>() { "q_id1=" + tsaBarcode.Q_id1 }; OAuth_CSharp oauth_CSharp = new OAuth_CSharp(tsaBarcode.ConsumerKey, tsaBarcode.ConsumerSecret); return(oauth_CSharp.GenerateRequestURL(tsaBarcode.BaseUri, HTTP_Method, parameters)); }