I wanna make a export page for all completed courses from each user. but which API function I can use best.
I have found the function core_completion_get_course_completion_status, but the problem is that it needs a courseid and a userid. The problem is that with 100 users and every user has 20 couses he has to make 100 x 20 = 2000 API calls. I find that a lot myself.
Does anyone have a better way for me?
You have to make a plugin first, then populate it with web service
Related
I have scraped over 6000 Instagram accounts. I need to ensure that their details are always up to date.
My requirement is
To check if the user is still active or deactivated
Check if the user has changed the user name or not.
However, Graph/Mobile APIs can achieve this, but I am looking for an efficient way to get the current details of users/accounts.
Thank you!
Rookie S3 user here looking to troubleshoot a problem I encountered while helping some friends with their business. Their business revolves around selling courses and the program they use is WooCommerce and they attach course files through WordPress. The way these courses work is that there is a live video call where people like to join in so the product on WooCommerce initially holds the details for the upcoming call and afterward additional audio and transcripts are added to the product for sale. The problem is that this means people who had bought the course prior to this call would not receive these files unless permission to see them was manually given. As this is redundant and troublesome, my thought was to change the purchase to instead give a link which goes into an Amazon S3 bucket labeled courses and give them access to a specific folder within it. Ideally, this link would let them see new files lives and furthermore would limit the size of data on the website which is hosted on a dedicated server (save some $$$ on hosting fees, 2 birds 1 stone) The problem however is that since I am a complete novice to this style of coding, I am unsure of how to do this although I do think it is possible given an answer is already out there or if I can bull and jam my way through a section of code. The reason I am looking to sort out courses as folders inside a bucket instead of individual buckets is that the number of courses the website currently has is nearing 200 and if an effort was made to change those then it would be well over the 100 bucket limit in addition to being an exercise in repetition. Any advice or help would be greatly appreciated, thanks!
If I understand you correctly, you want to host content on S3, but want to achieve some degree of access control on that content.
The most straightforward way to do this, the one that involves minimal S3 integration, is to presign an S3 url for the user. the presigned url would be good for a limited time and could be generated directly before redirecting the user to that URL by your wordpress site, which would in turn hold aws access credentials.
https://docs.amazonaws.cn/zh_cn/aws-sdk-php/guide/latest/service/s3-presigned-url.html eplains more about this from a php perspective, which I'm guessing is the right lens for you.
This allows some modicum of access control ( the users can still share the document after they've accessed it, but at least it's not just public).
If you don't need access control, you can make the s3 object public and omit the signing altogether.
Using LinkedIn API Documentation for company pages, I know how to retrieve :
The list of companies a user is admin of
Several profile fields for each individual company
Can I do that in one call instead of N+1 calls ?
Well, I ended up answering my own question pretty quickly. Calling the API in the following way gives you the list of companies AND the list of profile fields you need :
https://api.linkedin.com/v1/companies:(id,name,ticker,description,website-url,square-logo-url)?format=json&is-company-admin=true
I am trying to fetch as many LinkedIn updates as possible for a company--
Here is the link I am using -
https://api.linkedin.com/v1/companies/21837/updates?event-type=status-update&count=250
But it only returns 10 updates. There are many more updates but they don't show up in the response. All posts older than a month ago don't show up. Is there a limitation on how far back you can go?
Appreciate any help!
20 days seems to be the limit, according to the LinkedIn API documentation.
Note that the API returns the latest 50 updates only for event type
status-update. If you have updates of other types (such as jobs
posting, product-updates etc.) then it can fetch up to 250 updates or
updates in the last 20 days whichever comes first.
The wording there isn't totally clear, their API documentation isn't very good unfortunately.
I have simple website for auctioning.I want people who likes my website needs to be informed about any new auctioning. And sending messages or post updates to their news feed or post on their wall when they win the auction. The user can also share the story of a new auction to their friends.
For this Do I need separate canvas app ?
I went through the documentation http://csharpsdk.org/. Also I read official graph api docs.
I thought there will be lists of classes in a namespace and its use. Lists of methods, properties in a class and its uses and explanation for parameters.
I cant find such documentation for facebook c# sdk. In official docs they only have 5 articles in which 3 are [TO-DO].
I cant find what are the classes are there?
what are the purpose of
the particular class or method ?
For informing about new Auctioning and winning news what can be used ?
sending mesages
post on their news feed
post on their wall(or timeline)
I found how to post on behalf of the user. But I need to inform the fans of my website when there is a new auctioning. How to do it?
Winning an auction
About generating user actions on their walls about winning auctions and stuff, you need to look at facebook open graph
For informing about new Auctioning and winning news what can be used ?
#1 sending messages is not possible
Notifying users
For sending notification to users about new auctions, you need to use apprequests
But apprequests are only for canvas apps, apart from this I don't thing you have a chance of notifying the user, unless you store their emails id and notify them.
Hope this helps