akhil2909 / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

fetching profile for bulk users method not supported #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using getConnectionsForCurrentUser() will fetch only current User's profile. 

2. there is no method supported for Multiple Users ::

URL : 
http://api.linkedin.com/v1/people::(~,JBqea68E4t,VM5RhhGeCh,q7QCWTl5H8,RJsdzpoyH
q,EF5BfziSbO):public

3.

What is the expected output? What do you see instead?
I want to see profiles of the user Id's provided.

Like below: <?xml version="1.0" encoding="UTF-8"?>
<people total="5">
  <person key="JBqea68E4t">
    <id>JBqea68E4t</id>
    <first-name>Somya</first-name>
    <last-name>Gupta</last-name>
    <headline>QA Engineer</headline>
    <connections total="187" />
    <positions total="1">
      <position>
        <id>197105572</id>
        <title>Software QA Engineer</title>
        <summary>- Working on Mercury & PowerCenter</summary>
        <start-date>
          <year>2011</year>
          <month>6</month>
        </start-date>
        <is-current>true</is-current>
        <company>
          <id>3858</id>
          <name>Informatica</name>
          <size>1001-5000 employees</size>
          <type>Public Company</type>
          <industry>Computer Software</industry>
          <ticker>INFA</ticker>
        </company>
      </position>
    </positions>
    <member-url-resources total="0" />
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/JBqea68E4t</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:tBB6</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile?viewProfile=&key=45405802&authToken=tBB6&authType=name&trk=api*a108281*s116823*</url>
    </site-standard-profile-request>
    <location>
      <name>Bhopal Area, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Computer Software</industry>
    <num-recommenders>0</num-recommenders>
    <api-public-profile-request>
      <url>http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fpub%2Fsomya-gupta%2F13%2F258%2F60a:public</url>
    </api-public-profile-request>
    <site-public-profile-request>
      <url>http://www.linkedin.com/pub/somya-gupta/13/258/60a</url>
    </site-public-profile-request>
    <public-profile-url>http://www.linkedin.com/pub/somya-gupta/13/258/60a</public-profile-url>
  </person>
  <person key="VM5RhhGeCh">
    <id>VM5RhhGeCh</id>
    <first-name>Neha</first-name>
    <last-name>Agarwal</last-name>
    <headline>Analyst Programmer at Fidelity</headline>
    <connections total="87" />
    <positions total="1">
      <position>
        <id>217783198</id>
        <title>Analyst Programmer ETL Developer</title>
        <summary />
        <start-date>
          <year>2011</year>
          <month>6</month>
        </start-date>
        <is-current>true</is-current>
        <company>
          <id>1313</id>
          <name>Fidelity Worldwide Investment</name>
          <type>Privately Held</type>
          <industry>Investment Management</industry>
        </company>
      </position>
    </positions>
    <member-url-resources total="0" />
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/VM5RhhGeCh</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:69DN</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile?viewProfile=&key=84542931&authToken=69DN&authType=name&trk=api*a108281*s116823*</url>
    </site-standard-profile-request>
    <location>
      <name>Gurgaon, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Financial Services</industry>
    <num-recommenders>0</num-recommenders>
    <api-public-profile-request>
      <url>http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fpub%2Fneha-agarwal%2F24%2F391%2F383:public</url>
    </api-public-profile-request>
    <site-public-profile-request>
      <url>http://www.linkedin.com/pub/neha-agarwal/24/391/383</url>
    </site-public-profile-request>
    <public-profile-url>http://www.linkedin.com/pub/neha-agarwal/24/391/383</public-profile-url>
  </person>
  <person key="q7QCWTl5H8">
    <id>q7QCWTl5H8</id>
    <first-name>Anand</first-name>
    <last-name>Agrawal</last-name>
    <headline>Senior Analyst at HCL Technologies</headline>
    <connections total="25" />
    <positions total="1">
      <position>
        <id>155822481</id>
        <title>Senior Analyst</title>
        <summary />
        <start-date>
          <year>2009</year>
          <month>3</month>
        </start-date>
        <is-current>true</is-current>
        <company>
          <id>1756</id>
          <name>HCL Technologies</name>
          <type>Public Company</type>
          <industry>Information Technology and Services</industry>
          <ticker>532281</ticker>
        </company>
      </position>
    </positions>
    <member-url-resources total="1">
      <member-url>
        <url>http://www.hcl.in</url>
        <name>Company Website</name>
      </member-url>
    </member-url-resources>
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/q7QCWTl5H8</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:YzNA</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile?viewProfile=&key=27392199&authToken=YzNA&authType=name&trk=api*a108281*s116823*</url>
    </site-standard-profile-request>
    <location>
      <name>Bhopal Area, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Information Technology and Services</industry>
    <num-recommenders>0</num-recommenders>
    <summary>In HCL i came across so many opportunities and challenges which helped me to grow,learn and deliver the best in me.I have learned so may technologies and got appreciation award  from National Manger (india) which made me more passionate to learn everyday.</summary>
    <specialties>Implementation and managing all security products.</specialties>
    <interests />
    <honors>Awarded by HCL National Manager.</honors>
    <certifications total="1">
      <certification>
        <id>1</id>
        <name>CCNA</name>
      </certification>
    </certifications>
    <api-public-profile-request>
      <url>http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fpub%2Fanand-agrawal%2F9%2F20b%2Fb73:public</url>
    </api-public-profile-request>
    <site-public-profile-request>
      <url>http://www.linkedin.com/pub/anand-agrawal/9/20b/b73</url>
    </site-public-profile-request>
    <public-profile-url>http://www.linkedin.com/pub/anand-agrawal/9/20b/b73</public-profile-url>
  </person>
  <person key="RJsdzpoyHq">
    <id>RJsdzpoyHq</id>
    <first-name>Yash</first-name>
    <last-name>Agrawal</last-name>
    <headline>Manager-Trade Finance & Cash Management Corporates at Deutsche Bank</headline>
    <connections total="366" />
    <positions total="1">
      <position>
        <id>211649243</id>
        <title>Manager-Trade Finance & Cash Management Corporates</title>
        <summary />
        <start-date>
          <year>2011</year>
          <month>8</month>
        </start-date>
        <is-current>true</is-current>
        <company>
          <id>1262</id>
          <name>Deutsche Bank</name>
          <type>Public Company</type>
          <industry>Investment Banking</industry>
          <ticker>DB</ticker>
        </company>
      </position>
    </positions>
    <member-url-resources total="0" />
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/RJsdzpoyHq</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:tY6L</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile?viewProfile=&key=60043308&authToken=tY6L&authType=name&trk=api*a108281*s116823*</url>
    </site-standard-profile-request>
    <location>
      <name>Mumbai Area, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Banking</industry>
    <num-recommenders>0</num-recommenders>
    <api-public-profile-request>
      <url>http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fpub%2Fyash-agrawal%2F18%2F137%2F350:public</url>
    </api-public-profile-request>
    <site-public-profile-request>
      <url>http://www.linkedin.com/pub/yash-agrawal/18/137/350</url>
    </site-public-profile-request>
    <public-profile-url>http://www.linkedin.com/pub/yash-agrawal/18/137/350</public-profile-url>
  </person>
  <person key="EF5BfziSbO">
    <id>EF5BfziSbO</id>
    <first-name>Narendra</first-name>
    <last-name>S</last-name>
    <connections total="240" />
    <positions total="0" />
    <member-url-resources total="0" />
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/EF5BfziSbO</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:YYSJ</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile?viewProfile=&key=8967762&authToken=YYSJ&authType=name&trk=api*a108281*s116823*</url>
    </site-standard-profile-request>
    <location>
      <name>Bengaluru Area, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Information Technology and Services</industry>
    <num-recommenders>0</num-recommenders>
    <api-public-profile-request>
      <url>http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fssnarendra:public</url>
    </api-public-profile-request>
    <site-public-profile-request>
      <url>http://www.linkedin.com/in/ssnarendra</url>
    </site-public-profile-request>
    <public-profile-url>http://www.linkedin.com/in/ssnarendra</public-profile-url>
  </person>
</people>

What version of the product are you using? On what operating system?
Version linkedin-j-1.0.370 : Windows 7

Please provide any additional information below.
We can currently fetch using current User Id, URl and no Id. but if I give a 
list of ID's it should fetch me all the profiles of the given Id's.

Original issue reported on code.google.com by adorable...@gmail.com on 21 Dec 2011 at 8:22

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out.

Original comment by nabeelmukhtar on 21 Dec 2011 at 8:36

GoogleCodeExporter commented 9 years ago
Hi Nabeel.. you are most welcome..:) Your library I am using works like magic.. 
could'nt have been better..Thanks A ton..!! Is there a temporary fix for 
fetching the Bulk profiles until you checkin the new code for this feature.

Original comment by adorable...@gmail.com on 21 Dec 2011 at 9:09

GoogleCodeExporter commented 9 years ago
Hi Nabeel,

When will this issue be fixed?
Any workaround for this?

Thank you for the library.

Original comment by va...@sync.me on 19 Feb 2013 at 12:11