The API Permissions tab of the Project Properties pane can be used to add the appropriate permissions for the example.