Add missing fields in Account.
See https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#account Also fixes a spurious pagination-related error.
This commit is contained in:
parent
48920165ef
commit
61705d1f2b
2 changed files with 17 additions and 1 deletions
|
@ -258,7 +258,12 @@ func getPaginationID(rawurl, key string) (ID, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
id, err := strconv.ParseInt(u.Query().Get(key), 10, 64)
|
||||
val := u.Query().Get(key)
|
||||
if val == "" {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
id, err := strconv.ParseInt(val, 10, 64)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue