OAuth2 for MapMyRun using Swift 3
问题 I'm trying to get user to authenticate my app to work with his data stored on MapMyRun(https://developer.underarmour.com/apps/myapps). Here is my code: let oauth2 = OAuth2CodeGrant(settings: [ "client_id": "asdasdasd", "client_secret": "asdasdasd123", "authorize_uri": "https://www.mapmyfitness.com/v7.1/oauth2/uacf/authorize/?client_id=asdasdasd&response_type=code&redirect_uri=http://localhost.mapmyapi.com:12345/callback", "token_uri": "https://api.mapmyfitness.com/v7.1/oauth2/access_token/",