status.go
changeset 149 5f922977d7c7
parent 138 23d3a518d0ad
child 155 0c581e0108da
--- a/status.go	Fri Apr 28 13:28:16 2017 +0200
+++ b/status.go	Fri Apr 28 15:43:11 2017 +0200
@@ -48,7 +48,7 @@
 		endPoint += "/" + op
 	}
 
-	return mc.apiCall(endPoint, rest.Get, nil, data)
+	return mc.apiCall(endPoint, rest.Get, nil, nil, data)
 }
 
 // updateStatusData updates the statuses
@@ -114,7 +114,7 @@
 		}
 	}
 
-	return mc.apiCall(endPoint, method, params, data)
+	return mc.apiCall(endPoint, method, params, nil, data)
 }
 
 // GetStatus returns a status
@@ -151,14 +151,14 @@
 }
 
 // GetStatusRebloggedBy returns a list of the accounts who reblogged a status
-func (mc *Client) GetStatusRebloggedBy(statusID int) ([]Account, error) {
+func (mc *Client) GetStatusRebloggedBy(statusID int, lopt *LimitParams) ([]Account, error) {
 	var accounts []Account
 	err := mc.queryStatusData(statusID, "reblogged_by", &accounts)
 	return accounts, err
 }
 
 // GetStatusFavouritedBy returns a list of the accounts who favourited a status
-func (mc *Client) GetStatusFavouritedBy(statusID int) ([]Account, error) {
+func (mc *Client) GetStatusFavouritedBy(statusID int, lopt *LimitParams) ([]Account, error) {
 	var accounts []Account
 	err := mc.queryStatusData(statusID, "favourited_by", &accounts)
 	return accounts, err