what is the purpose of ctx.web while interacting with sharepoint document using python? - office365api

restapi package but I stuck in this "ctx.web". I didn't get any reference in google. so, please me to sort out my query.
I searched in numerous website but I didn't get any breakthrough.

Related

Microsoft Graph support for creating document sets and managed metadata term columns

I recently started testing the Microsoft Graph APIs, I've been able to successfully upload and delete documents in SharePoint Online document libraries through it.
I have not seen anything documentation around this and would guess it's not supported but wanted to confirm, in case I missed it - Does the Microsoft Graph API support creating document sets and/or updating managed metadata columns?
Based on my test, the managed metadata should have not been supported. Although no official docs states this.
If you cannot get the information by the expand=fields too, I'd suggest you to submit a feature request first: https://officespdev.uservoice.com/

Find most recently added file into SharePoint online library

My requirement is to search for a file in my entire SharePoint Online (SPO) using Graph apis. I have my query something like this which I use in MS Graph Explorer:
https://'my domain'.sharepoint.com/_api/search/query?Querytext='res1a2b3c4d5e'
Basically above query is to search for all the documents having title/name as 'res1a2b3c4d5e'. This works fine if I search for any existing document. If I try to search for any document which was created/uploaded just before making above call I wont get the result.
If I search for the same after couple of minutes, then the request succeeds. Where as when I try the same on my customers site where it has millions of documents. It nearly takes around 20+ hours before I can do a successful search
So does graph api work on any SPO cache?
How can I search for newly added file without having to wait for 20+ hours?
Thanks in advance.
The search results will be available only after the search content is crawled and available in search index. While you can control the crawl schedule in SharePoint On-Premise, you cannot do so in SharePoint online. Crawling frequency in SharePoint online is managed by Microsoft.
More Details

Using YouTube API to retrieve information of past searches

I wonder if there is any way to get a list of the searches done with the same key using YouTube API. I could not find it on the API documentation.
I have several computers running a searching code, using YouTube API.
The keyword used is picked randomly from a list of terms. All computers use the same key.
Any idea?
Thanks in advance,
Diego
API won't do that, but you can save the searches on your end.

What is a good strategy for staying up-to-date with external API's?

My project is reliant on several API's, like Twitter and Youtube for example. Recently, Youtube deprecated their old API, and it caused issues with my team's iPad app.
We could have stayed ahead of the change if we were paying attention to Youtube's announcements of the upcoming deprecation. But alas, we were not and the idea of staying up to date with all of our dependencies manually(browsing the web) seems exhausting and inefficient.
I have found the following tool to help notify when changes occur with external library dependencies, https://libraries.io. However, this does not help with API dependencies.
Besides checking the API source webpages every so often, I was wondering if anyone had suggestions on how to stay notified and up-to-date with news regarding updates to a specified list of external API's?
After some time looking at different options, I have found a solution that is not perfect, but seems to work best at fitting this need.
Solution Description
This solution uses a combination of Twitter, Google Scripts, and website blogtrottr.com. I am creating a twitter list of reliable dev handles that often post updates on new API. For example I made a list that contained #twitterapi and #YouTubeDev. Used Google Scripts to create an online feed out of the twitter list. Then used blogtrottr to email me every time that feed gets a new posting.
Steps to Implement
Create a twitter list of reliable handles that often post about updates to their API
Create an RSS Feed from that Twitter list. The details for how to do this can be found here.
Plug that url that you get from Google Script into blogtrotter.
I did find some other ways to do this, but so far this is the only solution that was 100% free!

How can I search documents from google using C# code?

I am currently working on document search in google. I don't want to do HTML parsing at all. However looking for some api which search google documents from internet.
Basically I do have one requirement where there is a task of searching .pdf, .doc files from google search. I have done some googling and found that this cause captcha to be introduce from google and there is limit of 100 query / day.
Is there any free API from google or if not any paid by which i can pass some search query and get the result.
Please note, i don't want HTML parsing at all.
Moreover, Is there any way to overcome the issue of Captch??

Resources