module NikePlusGem
  class Client

    ACTIVITY_DATA = []

    def activity_data(params={})
      params = params.only(ACTIVITY_DATA)

      activity_id = params["activityId"]

      get("/me/sport/activities/" << activity_data, params)
    end

  end
end
module NikePlusGem
  class Client

    ACTIVITY_DATA = ["activityId"]

    def activity_data(params={})
      params = params.only(ACTIVITY_DATA)

      activity_id = params["activityId"]

      get("/me/sport/activities/" << activity_id, params)
    end

  end
end
Fix issue in Activity Data endpoint.
Fix issue in Activity Data endpoint.

- Must include the required activityId parameter.
- Append the activity_id value instead of the required params.
