final commit?
This commit is contained in:
@@ -1,30 +1,30 @@
|
|||||||
var offset = {1};
|
var offset = {1};
|
||||||
var peer_id = {2};
|
var peer_id = {2};
|
||||||
|
|
||||||
var hist = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 0}).items;
|
var hist = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 0, rev: 1}).items;
|
||||||
var hist_2 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 200}).items;
|
var hist_2 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 200, rev: 1}).items;
|
||||||
var hist_3 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 400}).items;
|
var hist_3 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 400, rev: 1}).items;
|
||||||
var hist_4 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 600}).items;
|
var hist_4 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 600, rev: 1}).items;
|
||||||
var hist_5 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 800}).items;
|
var hist_5 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 800, rev: 1}).items;
|
||||||
var hist_6 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1000}).items;
|
var hist_6 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1000, rev: 1}).items;
|
||||||
var hist_7 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1200}).items;
|
var hist_7 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1200, rev: 1}).items;
|
||||||
var hist_8 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1400}).items;
|
var hist_8 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1400, rev: 1}).items;
|
||||||
var hist_9 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1600}).items;
|
var hist_9 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1600, rev: 1}).items;
|
||||||
var hist_10 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1800}).items;
|
var hist_10 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1800, rev: 1}).items;
|
||||||
var hist_11 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2000}).items;
|
var hist_11 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2000, rev: 1}).items;
|
||||||
var hist_12 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2200}).items;
|
var hist_12 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2200, rev: 1}).items;
|
||||||
var hist_13 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2400}).items;
|
var hist_13 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2400, rev: 1}).items;
|
||||||
var hist_14 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2600}).items;
|
var hist_14 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2600, rev: 1}).items;
|
||||||
var hist_15 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2800}).items;
|
var hist_15 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2800, rev: 1}).items;
|
||||||
var hist_16 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3000}).items;
|
var hist_16 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3000, rev: 1}).items;
|
||||||
var hist_17 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3200}).items;
|
var hist_17 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3200, rev: 1}).items;
|
||||||
var hist_18 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3400}).items;
|
var hist_18 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3400, rev: 1}).items;
|
||||||
var hist_19 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3600}).items;
|
var hist_19 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3600, rev: 1}).items;
|
||||||
var hist_20 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3800}).items;
|
var hist_20 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3800, rev: 1}).items;
|
||||||
var hist_21 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4000}).items;
|
var hist_21 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4000, rev: 1}).items;
|
||||||
var hist_22 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4200}).items;
|
var hist_22 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4200, rev: 1}).items;
|
||||||
var hist_23 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4400}).items;
|
var hist_23 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4400, rev: 1}).items;
|
||||||
var hist_24 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4600}).items;
|
var hist_24 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4600, rev: 1}).items;
|
||||||
var hist_25 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4800}).items;
|
var hist_25 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4800, rev: 1}).items;
|
||||||
|
|
||||||
return hist + hist_2 + hist_3 + hist_4 + hist_5 + hist_6 + hist_7 + hist_8 + hist_9 + hist_10 + hist_11 + hist_12 + hist_13 + hist_14 + hist_15 + hist_16 + hist_17 + hist_18 + hist_19 + hist_20 + hist_21 + hist_22 + hist_23 + hist_24 + hist_25;
|
return hist + hist_2 + hist_3 + hist_4 + hist_5 + hist_6 + hist_7 + hist_8 + hist_9 + hist_10 + hist_11 + hist_12 + hist_13 + hist_14 + hist_15 + hist_16 + hist_17 + hist_18 + hist_19 + hist_20 + hist_21 + hist_22 + hist_23 + hist_24 + hist_25;
|
||||||
@@ -97,7 +97,8 @@ async fn thread_requests<'a>(count: i64, code: String, config: Config, pool: Poo
|
|||||||
.replace("{2}", &config.peer_id); // Put in peer_id and offsets
|
.replace("{2}", &config.peer_id); // Put in peer_id and offsets
|
||||||
let urlencoded: String = byte_serialize(replaced_code.as_bytes()).collect(); // Encode string for request to VK
|
let urlencoded: String = byte_serialize(replaced_code.as_bytes()).collect(); // Encode string for request to VK
|
||||||
|
|
||||||
let result = reqwest::get(api_url( // Send GET request to VK API
|
let result = reqwest::get(api_url(
|
||||||
|
// Send GET request to VK API
|
||||||
"execute",
|
"execute",
|
||||||
vec![&("code=".to_string() + &urlencoded)],
|
vec![&("code=".to_string() + &urlencoded)],
|
||||||
&config,
|
&config,
|
||||||
|
|||||||
Reference in New Issue
Block a user