get_endpoint function

Generate endpoint for the Google classroom API