Commit a96da32d authored by Administrator's avatar Administrator
Browse files

catch type or action misspell

parent 8783c7f9
......@@ -98,7 +98,8 @@ namespace MassGetDb
string user = "";
if (type.Equals("ids")) { user = "user_id=" + line_user; }
else if (type.Equals("screennames")) { user = "screen_name=" + line_user; }
else { return; }
string max_id = "";
string count = "count=200";
string cursor = "cursor=-1";
......@@ -109,7 +110,8 @@ namespace MassGetDb
string query = "";
if (action.Equals("tweets")) { query = count + "&" + user + "&" + max_id; }
else if (action.Equals("followers")) { query = user + "&" + cursor; }
else { return; }
string response = process_request(method, host, endpoint, query, body, action); // pass in action to ensure correct requests remaining
dynamic stuff = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment