To get the number of connections from the profile API, you can directly access the API:
http://api.linkedin.com/v1/people/id=nbqwYraDfd:(num-connections,num-connections-capped)
which will return (depending on the number of connections):
<?xml version="1.0" encoding="UTF-8"?>
<person>
<num-connections>500</num-connections>
<num-connections-capped>true</num-connections-capped>
</person>
, , . . . , " " - nbqwYraDfd , :
http://api.linkedin.com/v1/people/id=nbqwYraDfd:(connections)
:
<?xml version="1.0" encoding="UTF-8"?>
<person>
<connections total="XXX" count="YYY" start="0">
<person>
...
</person>
</connections>
</person>
total, XML ( ).
, nbqwYraDfd -, 403:
<?xml version="1.0" encoding="UTF-8"?>
<error>
<status>403</status>
<timestamp>1337954306491</timestamp>
<request-id>25P44ZN249</request-id>
<error-code>0</error-code>
<message>Access to other member connections denied</message>
</error>