Hello All,
I have the following vb.net code (see attached txt file) that appears to be working fine in the sense that I get my token and secret back successfully. However, when I try to get the default user profile information back (/people/~) I get an error. I have been looking at this for 2 days now and am not getting anywhere. All and any advice appreciated.
Some facts:
- I am using the latest Hammock Library from github.
- I get the redirection to LinkedIn for authorisation fine and can enter a pin code
- I can get an access token back
- I am happy to recieve help in either vb or c#
- I am making a desktop application, NOT a web application.
Once the code executes the following line I recieve the error:
-- Dim newresponse As RestResponse = mynewClient.Request(newrequest)
I get this response back.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>404</status>
<timestamp>1325670427012</timestamp>
<request-id>ZICRKYB5OJ</request-id>
<error-code>0</error-code>
<message>Could not find person based on: ~</message>
</error>
- Log in to post comments
Just as an update, if I amend the last section of my code as follows:
Try
Dim mynewClient As New RestClient()
With mynewClient
.Authority = "https://api.linkedin.com/people/" '"https://api.linkedin.com"
.Credentials = mynewcredentials
.Method = Web.WebMethod.Get
.VersionPath = "1.0"
End With
Dim newrequest As RestRequest = New RestRequest
newrequest.Path = "~"
newrequest.Credentials = mycredentials
Dim newresponse As RestResponse = mynewClient.Request(newrequest)
MsgBox("!")
Catch ex As Exception
MsgBox("!")
End Try
I recieve a different message:
LinkedIn: Upgrade your Security
LinkedIn is committed to the security of our member’s data.
We use SSL encryption on all of our pages. Unfortunately, your browser does not support the level of encryption we use here at LinkedIn.
We ask that you upgrade your browser’s encryption level. This usually involves a download from your browser’s manufacturer.
Follow these links to upgrade your security:
Download Firefox
Internet Explorer High Encryption Pack
Upgrding your browser’s encryption will improve data security not only for LinkedIn, but for all other websites using SSL as well.
We apologize for the inconvenience.
— The LinkedIn Team