Ejemplo n.º 1
0
        public static async Task <bool> CheckKuki(string kuki)
        {
            // get csrftoken
            MatchCollection mc = Regex.Matches(kuki, @"(?<=csrftoken\=)[A-Za-z0-9]*");

            if (mc.Count() != 0)
            {
                Api_.xcsrftoken = mc[0].ToString();
                Api_.cookies    = kuki;

                JObject r = await Api_.Requests("POST", "https://www.instagram.com/web/friendships/24983173127/follow/");


                return(((string)r["status"] == "ok") ? true : false);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public static async Task <JObject> like(string id)
        {
            JObject result = await Api_.Requests("POST", $"https://www.instagram.com/web/likes/{id}/like");

            return(result);
        }
Ejemplo n.º 3
0
        public static async Task <JObject> coment(string komentar, string id)
        {
            JObject result = await Api_.Requests("POST", $"https://www.instagram.com/web/comments/{id}/add/", $"comment_text={komentar}&replied_to_comment_id=");

            return(result);
        }
Ejemplo n.º 4
0
        public static async Task <JObject> getPosts(string id, int j)
        {
            JObject post = await Api_.Requests("GET", "https://www.instagram.com/graphql/query/?query_hash=42323d64886122307be10013ad2dcc44&variables={\"id\":\"" + id + "\",\"first\":" + j + "}");

            return(post);
        }