LinkedIn Company Update permalink - linkedin

Based on the current API docs (2015 edition), the API allows for
Reading a Company's updates
Posting to a Company updates
However, the sample responses do not seem to include any form of "permalink". If you post a Company update it gets added to Company's feed, but there's no specific link that I can send to others.
Am I missing something, do Company Updates have a permalink?

You can use the company update key value & apply in this answer.
According to the above link, here is an example.
If update key is UPDATE-c1337-998877665544332211, then the permalink will be https://www.linkedin.com/nhome/updates?topic=998877665544332211

Related

WooCommerce API - If I send order data to a custom API and the API sends back the data how do I associate it to the correct Order ID?

I'm currently working on a WooCommere site which I need to update orders on via an API.
I'm a total novice when it comes to working with API's. I have created a webhook that fires when an order is created, this works fine.
I can also update the JSON to change meta such as the customer name and
POST the data back and I can see it updated in the back end when using the following url
https://xxxxx/wp-json/wc/v3/orders/5858
My question is how do I associate the response to an order? For example, if I send over 20 orders to the api how can I send them back to my site and get the orders updated?
eg order ID 001,002,003 etc
Do I use the following url:
https://xxxxx/wp-json/wc/v3/orders/
If I append the url with the order ID the single 001 order updates no problem
https://xxxxx/wp-json/wc/v3/orders/001
I've read a couple of tutorials but they all seem to work by updating 1 order. I don't understand how to do this with multiple orders surely I don't need to manually create the URL for each order so the API can update them?
I'm totally lost and feel like I'm missing something totally basic.
Any pointers would be very much appreciated.

Can the LinkedIn API return a list of a user's saved articles?

The LinkedIn docs for the articles API show that I can get a particular article's content etc. by doing a
GET https://api.linkedin.com/v2/originalArticles/{originalArticlesId}
But it's not clear to me where I get that originalArticlesId from. How do I list the articles that any given user has saved?
The LinkedIn API does not yet provide that functionality. The closest you can get to what you are looking for is to get the articles published by a particular author.
GET https://api.linkedin.com/v2/originalArticles?q=authors
I think that if you want to have this functionality you will have to do a scraping of the profile of the person who requires this functionality.

WooCommerce REST API - GET Orders since Order ID

I'm using the WooCommerce REST API to download Orders into our internal CRM database. We're currently doing this by requesting all Orders between 2 date ranges, e.g.
wp-json/wc/v2/orders?after=2018-05-08T00:00:00Z&before=2018-05-14T23:59:59Z&page=1&orderby=id&order=asc
and this is working well. We were wondering if it's possible to change this to just request all new orders since the last Order ID that we downloaded. For example if the last Order ID we downloaded was 2450 we would like to make a request to get all new Orders after 2450. I've been reading the docs for the parameters to list all Orders but not sure if this is actually possible?
At the time of writing this is not currently possible. Hopefully a future update to the API will allow this.

How to get bestselling and favorites products in rest API in woocommerce?

I want to get bestselling and favorites products from woocommerce site with rest API .
I read this site but not found any thing about that.
Does it exist any way to get that ?
For People Who are Still Stumbling upon this Question
As per WC v3 API. You can now pull Most Popular products through the API (which is the best selling product list as per my understanding);
GET /wp-json/wc/v3/products?orderby=popularity&order=desc
This should get you the most popular products in descending order by the number of sales. This is not currently documented (as of Feb 2, 2021).
Total list of possible orderby params are: date, id, include, title, slug, modified, menu_order, price, popularity, rating
Another part of the question asks for Favorite product API, which woo commerce doesn't have.
I can see that you can access bestsellers through reports. See here. As for favourites, I think this is done using third party plugins or custom code so I'm not sure how you are going to access this. But if I was to hazard a guess I would probably assume it would be under customer meta

How to get LinkedIn Company status update comments using API?

I am trying to get comments to one particular Company status update using update-key. It is not documented in the manual, but when trying to call the link similar to Network status update link I can get some data, but the result data is not correct (it's addressed to another post).
The link is : http://api.linkedin.com/v1/companies/{company_id}/updates/key={update-key}/update-comments .
I am just wondering whether it is possible using API and whether this feature is in plans?
Reading Company updates is available in preview mode as of this answer:
https://developer.linkedin.com/reading-company-updates
However, there does not appear to be any published support for pulling a particular update by it's id. You can specify the type, and paginate through the results, but pulling a particular update does not appear to be supported, per the docs linked above.
This is actually possible, however the LinkedIn API documentation seems to have some typos in the examples:
v1/companies/{company_id}/updates/key={update_key}
I was able to get this to work!

Resources