INVALID_REQUEST and OAUTH_SCOPE_MISMATCH

INVALID_REQUEST and OAUTH_SCOPE_MISMATCH

Hi,
I'm using php-sdk with the rest API and I'm trying to getRecords

I got two errors : An INVALID_REQUEST and an OAUTH_SCOPE_MISMATCH.
Depend on the moments but both are here.

This is my code
ZohoOuauth : 


Function where i'm trying to get the records : 


I'm using a selfclient. 

Can anybody help me ?
Thanks