If token or secret are null don't use them
Do not json_encode empty data