You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is, at the moment, not possible to get DebugInfo or UsageInfo from a request made using PagingResult.Next() method.
I need this to check the Ad Account rate limit within my for loop.
Example:
varapp=fb.New("MY_APP_ID", "MY_APP_SECRET")
varsession=app.Session("MY_TOKEN")
session.SetDebug(fb.DEBUG_ALL)
result, _:=session.Get("/MY_AD_ACCOUNT_ID/activities", fb.Params{
"fields": "event_time,event_type,object_id,object_type",
"limit": 100,
})
// Here I can call result.DebugInfo() to check to first request onlypaging, _:=res.Paging(session)
noMore:=falsefor!noMore {
varresults=paging.Data()
// Do something with the data// Check the X-Ad-Account-Usage header before making the next request -> not possiblenoMore, _=paging.Next()
}
P.S: Since v3.3 a new rate limit headerX-Ad-Account-Usage has been added for request made on the Marketing API, it would be great to add it in the UsageInfo struct too.
Regards
The text was updated successfully, but these errors were encountered:
DebugInfo and UsageInfo are fields in Result, while the new rate limit header is stored in response header. From my understanding, you're asking for a new API in PageResult to get current page's rate limit information in response header.
Correct me if I didn't read right. This feature is not complex. I can do it in a few days after I get your confirmation.
It is, at the moment, not possible to get DebugInfo or UsageInfo from a request made using PagingResult.Next() method.
I need this to check the Ad Account rate limit within my
for
loop.Example:
P.S: Since v3.3 a new rate limit header
X-Ad-Account-Usage
has been added for request made on the Marketing API, it would be great to add it in the UsageInfo struct too.Regards
The text was updated successfully, but these errors were encountered: