LinkedIn member profile view doesn't work - linkedin

LinkedIn's API for showing the full member profile has suddenly stopped working.
Using this syntax:
<script type="IN/FullMemberProfile" data-id="SOME LINKED ID"></script>
The returned page from LinkedIn says:
Your Request Could not be Completed.
Is this the cause of a temporary problem that LinkedIn is experiencing or a permanent change to LinkedIn's API?

I did some testing at developer.linkedin.com/plugins/member-profile
This works:
https://www.linkedin.com/in/yaneisimacias/?ppe=1
This doesn't:
https://www.linkedin.com/in/christineburrows2010/?ppe=1
Suggests to me it's a bug...?

Related

LinkedIn Javascript SDK authorize stopped working

I have a LinkedIn integration using their SDK and use the method authorize to request permission from the user to post in her/his behalf. It was working fine but today I noticed that it stopped working. The issue is that the callbackFunction (see https://developer.linkedin.com/docs/getting-started-js-sdk) never gets called, so I don't know when the user grants permission or not.
I was checking and noticed that the file: https://platform.linkedin.com/in.js now redirects to https://platform.linkedin.com/xdoor/scripts/in.js. I took a look at https://web.archive.org/web/*/https://platform.linkedin.com/in.js and it seems that it changed around November the 13th.
Have you had any problems with the SDK recently?

Connecting to Youtube Analytics API using R

I am trying to pull data from Youtube Analytics API using R and have hit a wall. I'm getting a Status 403 error. I can confirm that:
I have tried logging out of all accounts, rebooting, re-authenticating and then logging into 1 account and it didn't work
I have tried using just the https://www.googleapis.com/auth/youtube.readonly scope (which is supposed to be correct) and all youtube analytics scopes are authorized within the app (each with their own credential key), it didn't work.
I have tried authenticating from different browsers, it didn't work
I can confirm that the call worked from https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v2/youtubeAnalytics.reports.query.
UPDATE
I have found the solution and updated the code to what is now working
scopes<- c('https://www.googleapis.com/auth/youtube.readonly')
endpoint<- oauth_endpoints('google')
youtubeapp<- oauth_app(appname='Youtube Analytics API',
key=client_id,
secret=client_secret)
youtube_token<- oauth2.0_token(
endpoint= oauth_endpoints('google'),
app = youtubeapp,
scope = scopes)
raw_data<- GET(paste("https://youtubeanalytics.googleapis.com/v2/reports?dimensions=",dimensions,"&endDate=",enddate,"&ids=",ids,"&metrics=",metrics,"&startDate=",startdate,sep=""),
config=youtube_token,content_type('application/json'))
content(raw_data, as= 'text')
I have figured out that access permissions are dictated by Youtube (not API IAM), so for example even though my personal email is owner of Brand account and API I still need to authenticate the call using the Brand Account or it won't work (I get 403 error for personal email). I tried switching my Youtube channel from Brand to personal and then my personal email worked. However, I need it under the brand account, so I have switched back.
I will leave this code up regardless because I found that good examples using R were lacking, I hope you find this useful.

LinkedIn API feeds

I'm looking into an issue where a clients LinkedIn feeds on their website have stopped showing. Debugging the problem I've found that I get a 403 error shown below:
Member xxxxxx does not have permission to get company xxxxx
As the LinkedIn authentication process can be quite difficult to comprehend, I had a look online to see if others have had the same problem, and managed to find this. It suggests there have been recent changes to the LinkedIn API and users are now required to be the administrator of the company. What exactly does this mean?
From the very beginning we have simply been accessed the feeds by generating a url like this:
https://api.linkedin.com/v1/companies/xxxx/updates?oauth2_access_token=ACCESS_TOKEN
This has worked in the past. Do we need to regenerate the Secret and API keys?
Update
Looking at the announced changes here:
https://developer.linkedin.com/support/developer-program-transition
It suggests that the following endpoint will still work (which is exactly what I have):
/v1/companies/{id}
So I'm not sure what I'm missing.
is the access token generated by a account witch is Admin of that company page?
If not hen you will get 403.
The requester needs to be admin of that comapny page in order to get company updates.

google calendar api "try it" examples broken?

I've been trying to get the Google PHP API working to add events to my calendar, but I keep getting POST errors, So i went to the docs on their site, but their live onpage examples of the API's keep giving me 500 errors, does anyone know why?
Like this one:
https://developers.google.com/google-apps/calendar/v3/reference/events/list#try-it
All you need to pass is a calenderID and auth with the google calendar scope, I did both of those and hit execute and I get a 500 internal server error from Google.
Are the Google Calender API's just broken or what?

I got my Google API browser key. what should I do next?

I am working on an ASP.NET website that uses google maps API. as sited in the tutorial in google.com I need a google API key to make it work. I got that key, but every time that I run my website, I get the following error:
Google has disabled use of the Maps API for this application. The
provided key is not a valid Google API Key, or it is not authorized
for the Google Maps Javascript API v2 on this site. If you are the
owner of this application, you can learn about obtaining a valid key
here: http://code.google.com/apis/maps/documentation/javascript/v2/introduction.html#Obtaining_Key
What could the problem be? The tutorial says nothing about what to do with the API key. It just says go to services and activate google Maps API v2 to get a key.
Thanks!
Did you include the API key into the URL when you load the Google Maps script?
From the link to the docs in the error message:
<script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false"
type="text/javascript"></script>
The link used to load the script is:
http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false
You need to replace that abcdef with the API key you got from Google Maps.

Resources