How to get an email address with a LinkedIn signup API with PHP
The email address is only available to the authenticated user and not his/her connections.
Make sure you've requested the r_emailaddress member permissions from the user when authorizing your application. Authentication covers authentication and grant member permissions in detail.
Make the following GET call to fetch the email address for the authenticated user:
GET http://api.linkedin.com/v1/people/~:(email-address)
Getting Email Address from LinkedIn API
You should use:
[self.client GET:[NSString stringWithFormat:@"https://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address)?oauth2_access_token=%@&format=json", accessToken] parameters:nil success:^(AFHTTPRequestOperation *operation, NSDictionary *result)
This may helps :)
How do I get a user's email address using LinkedIn's new api call?
You need to get new API-keys and then make requests as they are working on migration see this
LinkedIn API: GET public profile from e-mail
There are three ways to match a user's email address with a LinkedIn profile.
Have a special partnership with LinkedIn which allows you access to non-public API functions. This is very hard, and per my understanding, they only consider big guys (Startups with serious funding, established companies...)
Retrieve the user's details from another social network via email (Facebook used to allow that, not sure these days), and then perform a faceted search in LinkedIn's API using details other than the email (name, job title, location...) . You will get accurate results lots of times.
Use a 3rd party service such as fullcontact.com in order to get you those results.
I'm not sure if you'll be breaking any LinkedIn TOS, it all depends on what you're trying to achieve. So make sure you thoroughly read their TOS.
How do I get an email address from the LinkedIn API
Made a stupid mistake.
Turns out I forgot to set permission to access the Email Address, in the code.
// Build the list of member permissions our LinkedIn session requires
private static Scope buildScope() {
return Scope.build(Scope.R_BASICPROFILE);
}
Changed to:
// Build the list of member permissions our LinkedIn session requires
private static Scope buildScope() {
return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS);
}
Related Topics
No Such Module 'Fbsdkcorekit' Xcode 7.4
Gkmatchmaker Invite Handler Deprecated
Using Delegates to Transfer Data from One Tableview to Another
How to Make a Nsurlsesssion Get Request with Cookies
Case Insensitive Matching Search in String Array Swift 3
Raw Depth Map Sdk for iPhone X
How to Use Pod in Notification Service Extension
Background Image Not Displaying Correctly in iOS
"Reached the Max Number of Texture Atlases, Can Not Allocate More" Using Google Maps
How to Programatically Create a UIviewcontroller in Swift
Sprite Frame Animation Cocos2D 3.0
Exceeding Max Text("") Concatenation Length - Swiftui -
Is There a Way of Automatically Writing Custom Values to The Bundle's .Plist During a Build Phase
Detecting Double and Single Tap on Uitableviewcell to Perform Two Action