using Newtonsoft.Json.Linq;
using System.Collections.Generic;
public static void Main()
List<string> data = FilialeCheck("61","3","MEVLANA MARKET");
public static List<string> FilialeCheck(string kundenid, string filhauptid, string isletmeadi) {
string url = "http://35.156.146.218/issapi/v1/user/branch";
WebRequest request = WebRequest.Create (url);
string postData = "id="+kundenid+"&name="+isletmeadi+"&bid="+filhauptid;
byte[] byteArray = Encoding.UTF8.GetBytes (postData);
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = byteArray.Length;
Stream dataStream = request.GetRequestStream ();
dataStream.Write (byteArray, 0, byteArray.Length);
WebResponse response = request.GetResponse ();
Console.WriteLine (((HttpWebResponse)response).StatusDescription);
dataStream = response.GetResponseStream ();
StreamReader reader = new StreamReader (dataStream);
string responseFromServer = reader.ReadToEnd ();
JObject o = JObject.Parse(responseFromServer);
JArray data = (JArray)o["data"];
List<string> dataList = new List<string>();
foreach (JObject item in data) {
str = (string)item["kod"]+""+(string)item["ip"]+""+(string)item["email"]+"*"+(string)item["filialead"];