how to check if the username is available or not in Instagram, i tried using Get request and catch 404 error, it dose not work sometimes, is there another way ? a reliable one?
i tried using object pascal
try
lHTTP.Get('http://instagram.com/'+lPath, TStream(nil));
except
on E: EIdHTTPProtocolException do
begin
if E.ErrorCode = 404 then
begin
TThread.Synchronize(nil,
procedure
begin
Form1.Memo2.Lines.Add(lPath);
Label2.Text:= IntTosTr(Memo2.Lines.Count);
end
);
end;
Exit;
end;
end;
but sometimes, when it returns 404 i go and check if user exist in instagram, but i cant find it and i cant register with the user, it says user is unavailable!
is there instagram api function that i can use it to check if user is available ? i realised that some accounts are closed! how to differentiate if its closed or taken or available ?
UPDATE
i think maybe this could be answer, but im not sure how to use it in delphi, How do I check if a username is taken with parse.com when all User ACL:Public read/write is disable?