芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/fns/hybridauth/Provider/Strava.php
apiRequest('athlete'); $data = new Data\Collection($response); if (!$data->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('id'); $userProfile->firstName = $data->get('firstname'); $userProfile->lastName = $data->get('lastname'); $userProfile->gender = $data->get('sex'); $userProfile->country = $data->get('country'); $userProfile->city = $data->get('city'); $userProfile->email = $data->get('email'); $userProfile->displayName = $userProfile->displayName ?: $data->get('username'); return $userProfile; } }