Fix an issue to extract an integer value just before a closing brace
Add a function to request an authorization and to obtain an app_token