检查用户是否被禁止或帐户实际上不存在. Instagram,C# [英] Check if a user is banned or account doesn't actually exist. Instagram, c#

查看:136
本文介绍了检查用户是否被禁止或帐户实际上不存在. Instagram,C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用API​​,但是我一直在寻找一个像疯子一样试图寻找与之相关的API.我现在正在打开网站并下载所有网站,以查看网站是否包含找不到页面",但被禁止的帐户也会说同样的话.那么有什么已知的方法可以区分这个吗?

I am not using a API but I have been looking into the API like a mad man trying to find some relevance to it. I am opening the website and downloading all of it at the moment to see if it contains "Page Not Found" but banned accounts also say the same thing. So is there any known way to distinguish this?

推荐答案

进行呼叫以获取用户/users/*user-id*并比较不存在的用户的结果.

Make a call to get the user /users/*user-id* and compare the result for non-existent users.

http://instagram.com/developer/endpoints/users/#get_users

您还可以使用用户搜索/users/search调用按用户名进行搜索,并遍历结果,以查看是否与您要查找的用户名完全匹配.如果没有一个结果完全匹配,则说明它们不存在(或出于某种原因被隐藏了).

You could also use the users search /users/search call to search by username, and iterate through the results and see if any match the username you are looking for exactly. If none of the results match exactly, then you know they don't exist (or are for some reason hidden).

这篇关于检查用户是否被禁止或帐户实际上不存在. Instagram,C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆