T
T
tincap2017-03-17 13:29:21
API
tincap, 2017-03-17 13:29:21

How to get a link to the user's web page using the OK.ru API?

Hello.
I want to get a link to the user's web page. This is how the link looks like in the browser https://ok.ru/profile/576212751231
I thought that these numbers at the end of the URL are the user's UID, but it turned out not to be so. I tried to pull out information about the account profile, but I did not find anything.

public function getInfo($uid)
    {
        $method = 'users.getInfo';

        $response = $this->request->get($method, [
            'uids' => $uid,
            'fields' => 'first_name,name,last_name,pic190x190,last_online_ms,online,gender,can_vmail,pic190x190,last_online_ms,vip,online,birthday,can_vcall,current_status_id,current_status,current_status_date_ms,current_status_track_id,has_service_invisible,premium,photo_id,show_lock,pic_full,vip,birthday,age,private,location,relationship.*,relationship',
        ]);

        return $response;
    }

What can you suggest? How can I find out the link to the user's web page by API requests?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tom Nolane, 2017-03-17
@tincap

this method
p.s. if you have a uid and only need a url, just add https://ok.ru/profile/ + uid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question