I have a list of LinkedIn profile URLs and by proxy a list of person names/vanity names. I am trying to invoke the REST API and need each of their person IDs. How can I get the person ID from the name/URL?
There is no way of finding person id using username, name or url.
Facebook has done the same, PID is required in facebook.
User can fetch the data only when PERSONID is available, this prevent any misuse of their api or stealing of people data.
Related
We can create a post with a message prefilled from the URL using the below way
https://www.linkedin.com/feed/?shareActive=true&text=Hii%20Hii%20#lavanya
but when we mention a person in the text, it won't auto-detect, again we need to click on that and select the person from the given list of people.
Is there any way to auto-detect the person that we trying to tag
I'm wondering whether WebAuthN APIs can be used to identify an individual. Do any of the following hold
Can the authenticator ever return info about the individual e.g. First name, email etc
Will the authenticator always give us the same ID back for Alice when she uses this device regardless of which website I'm requesting from?
Will different devices ever give back the same ID for the same user?
Can the authenticator ever return info about the individual e.g. First name, email etc
It can if you set personally-identifying information to the value of user.id in the options you pass to navigator.credentials.create(). Also referred to as the "user handle", the spec includes a section specifically about how this value is one way the API can leak personally-identifying information if you're not careful what value you set user.id to.
Will the authenticator always give us the same ID back for Alice when she uses this device regardless of which website I'm requesting from?
The authenticator will not give back the same ID on every website. Every successful invocation of navigator.credentials.create() generates a unique credential bound to the website, meaning every website would have to use the same value for Alice's internal user ID for this to even have a chance of happening. And for any given website the authenticator only gives back the value of user.id (as passed into navigator.credentials.create()) as userHandle in the response from navigator.credentials.get() when Alice logs into that site.
Will different devices ever give back the same ID for the same user?
Different registered authenticators would give back the same ID for Alice provided you specify the same value for user.id whenever Alice registers an authenticator.
I'm in a private Telegram group that has a continual stream of many messages from a large number of people. I need to somehow pull out just those from a handful of specific people, and forward them to myself somehow - e.g. a new group I'm the only member of, or private chat, or some other way (email?). I just need to read them, not reply.
I'm a full stack developer (PHP back end but willing to consider others if works better) and know how to interface with APIs etc so can write some code to do this.
Can anyone advise on what API functions I'd use, or other approach here - and is it the Telegram or Bots API? Or is there a pre-existing solution out there?
Asking here as I've done my own research and not finding any solutions!
You can create a bot and put it in the private group. Set the bot as administrator so it can read all messages from all users. For each message the users send in the group, the bot will recive an update containing a message object. The message object contains all the information about the message just sent in the group, including the user's data. To filter a message from a specific user you can compare the user_id in $update['message']['from']['id'] with an array containing all the user_ids of the users you want to forward their messages to you, with the in_array php function passing the user_id and the array. Then, if it match, use the forwardMessage method with these parameters:
{
"chat_id": "YOUR_USER_ID",
"from_chat_id": "PRIVATE_GROUP_CHAT_ID",
"message_id": "THE_FILTERED_MESSAGE_ID"
}
If you use your user_id in the chat_id field, the bot will forward the message from the private group to your chat with it. The from_chat_id field is the chat_id of the private group (you can get it from $update['message']['chat']['id']). The message_id is the unique identifier for a message in that private group. It's contained in $update['message']['message_id'].
Instead of comparing the user_id to filter users, you can compare the first_name, last_name or username of the users but only the user_id is unique for each user and can not be changed.
You are using the Bot API.
Is there a possibility to get a person's info (name, current job, title, etc.) from the LinkedIn API?
I found a search endpoint(https://developer.linkedin.com/docs/guide/v2/people/profile-api#public-profile-url), but it only allows to search by person id, which I have no clue how to get)
https://api.linkedin.com/v2/people/(id:{person ID})
I have for a link, for example: https://www.linkedin.com/in/anton-holovko-7a070476/
How to get person id according to that link (using the LinkedIn API)?
well i couldnt find the endpoint but i can tell you that all V2 api's of linkedin require you to be a partner with linkedin. so that means you have to accuire a partnership and you have to specify which api's you are gonna use to get access.
https://developer.linkedin.com/partner-programs
and normally you get an ID from people that like/comment on a certain post. so if you get posts via the API you also recieve an ID of a person.
I have many quotes on the website and I want user to be able to vote, Like or Unlike each quote. The problem is that if I save the voted info in a cookie, there is a 4kb limit and if there is a visitor which votes on 100 quotes it may exceed the cookie limit.
What is the best method to store the vote information for non logged users?
The votes are also stored in database, but without any user information saved. Only logged users have saved info for each vote.
You can save votes on a table with columns:
quoteid,
userguid (guid)
And set a cookie on nonregistered users browser with an assigned GUID
when a user visit your site check the user GUID or assign him a new one. This way you can block votes.
You can use HTML5 Local Storage.
I would assign the non-logged in user a random ID and store this ID in the cookie.
The Id can then be used to reference data in your database.