I am currently working on analyzing twitter data , however when I attempt to translate twitter text data through the translate() package leveraging the use of Google API in R I get this error.
t <- gl_translate(my_data$text, source="ar", target="en", )
2020-07-19 11:25:30 -- Translating text: 69597 characters -
ℹ
2020-07-19 11:25:32 > Request Status Code: 400
2020-07-19 11:25:32 -- API returned: Request payload size exceeds the limit: 204800 bytes.
2020-07-19 11:25:32 -- Attempting to split into several API calls
2020-07-19 11:25:32 -- Translating text: 98 characters -
Auto-refreshing stale OAuth token.
ℹ 2020-07-19 11:25:33 > Request Status Code: 403
Error: API returned: Request had insufficient authentication scopes.
why does it produce this error?
this is my code:
gar_auth(email="**@**.com")
set.key('****')
t <- gl_translate(my_data$text, source="ar", target="en", )
View(t)