Skip to content

Commit 05db048

Browse files
committed
Add to register fn
1 parent 02a5bce commit 05db048

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/v1_2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ impl KeyauthApi {
197197
self.create_date = json_rep["info"]["createdate"].as_str().unwrap().to_string();
198198
self.last_login = json_rep["info"]["lastlogin"].as_str().unwrap().to_string();
199199
self.subscription = json_rep["info"]["subscriptions"][0]["subscription"].as_str().unwrap().to_string();
200+
self.sub_time_left = json_rep["info"]["subscriptions"][0]["timeleft"].as_i64().unwrap();
201+
self.expiry = json_rep["info"]["subscriptions"][0]["expiry"].as_str().unwrap().to_string();
200202
Ok(())
201203
} else {
202204
Err(json_rep["message"].as_str().unwrap().to_string())

0 commit comments

Comments
 (0)