How to get TaxKeyword for items in Drive - Microsoft Graph - microsoft-graph-api

i want to search all the items in a drive based on their TaxKeyword.
To begin, i tried to get informations for a list item and it is working.
But for an item in a drive, there is no TaxKeyword in response content.
I tried this query :
https://graph.microsoft.com/v1.0/sites/d506b5d3-fa85-4510-88fb-16049640ce8f/drive/items('01OKQZOOXUZW65LYSZNZBZXB3QKR6LKWIP')
But there is no value related to TaxKeyword.
Thanks for helps

For those that want to get all informations including TaxKeywords from a drive item.
We can play with a drive as if it was a list.
So i used the following query to get informations incuding TaxKeywords of all drive item :
https://graph.microsoft.com/v1.0/sites/SiteId/lists/ListId/items?expand=fields
Hope it can help someone.

Related

Mircrosoft Graph API: List all DriveItems in a drive : badRequest

I am getting the drive of my sharepoint using the following which returns the drive and its ID etc
GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com:/sites/mysite:/drive
However the below call returns a "Bad Request, url specified is invalid". Has anyone got any ideas on what I am doing wrong?
GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com:/sites/mysite:/drive/items
You can get the root folders like this
GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com/sites/mysite/drive/root/children
Note that mysite/drive is the default drive.
You can use
GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com/sites/mysite/drives/{driveId}/root/children
to identify the specific driveId.
There's no endpoint to get all items in a drive with every file from every subfolder at once.
Here is a similar question for your reference.

Is it possible to get all items using get_internal?

I have a need to be able to retrieve all items for a particular resource via a custom route. when I use the function as such get_internal("users", **{"role": item["_id"]}) I am only able to retrieve 50 users. Is there a way to tell get_internal to get all matching items? even if the number of items exceeds the PAGINATION_DEFAULT setting? Also is there any documentation on the <method>_internal functions?
Please see PAGINATION_LIMIT, PAGINATION_DEFAULT and QUERY_MAX_RESULTS. (Sorry, links only highlight the words in the page)

Itunes api for music store list

I am learning angular, for that i was use itunes api for my references. I want to list music albums and click that album i want to show details. I have found one url but in that there is no unique id. I want to unique id from each one from the list of albums. I have include that url below,
enter link description here
In this json, I did't get unique id from each item of the list. please provide correct url for get information and detail view of each items. If i get correct url i will practices small application in angular.
The first result from the URL you linked is:
{"wrapperType":"collection", "collectionType":"Album",
{""artistId":211192870, "collectionId":211192863,
{""artistName":"Louis Prima & Gia Maione", "collectionName":"Let's
{"Fly With Mary Poppins", "collectionCensoredName":"Let's Fly With
{"Mary Poppins",
{""artistViewUrl":"https://itunes.apple.com/us/artist/gia-
{"maione/id211192870?uo=4",
{""collectionViewUrl":"https://itunes.apple.com/us/album/lets-fly-
{"with-mary-poppins/id211192863?uo=4", "artworkUrl60":"http://is2.
{"mzstatic.com/image/thumb/Music/v4/5e/4c/b0/5e4cb014-26cd-
{"7b64-6dd6-b845750f88ce/source/60x60bb.jpg", "artworkUrl100":"htt
{"p://is2.mzstatic.com/image/thumb/Music/v4/5e/4c/b0/5e4cb014
{"-26cd-7b64-6dd6-b845750f88ce/source/100x100bb.jpg",
{""collectionPrice":9.99, "collectionExplicitness":"notExplicit",
{""trackCount":12, "copyright":"℗ 1965 Buena Vista Records",
{""country":"USA", "currency":"USD",
{""releaseDate":"2007-01-16T08:00:00Z", "primaryGenreName":"Jazz"}
Here's the URL to get those album details from the collection ID in that result:
https://itunes.apple.com/lookup?id=211192863&entity=album
I solved this using,
https://itunes.apple.com/search?term=jack+johnson&media=music
From this i get track id, and passed in to
https://itunes.apple.com/lookup?id=trackId&media=music
i passed this url and get detail page. Thanks

How to get a note or comment

I have an Excel containing cell comments/notes, I've uploaded it to Google Drive, and converted it into a Google Spreadsheet. How may I retrieve the comments for cell A1?
The API doesn't describe how to get a note or comment from a cell.
The Google Apps Spreadsheet API only provides programmatic access to spreadsheet data. You cannot access comments using the API.
You can get the Notes for a cell or range of cells using Google Apps Script. See the Class Range documentation for these methods:
getNote() - Returns the note associated with the given cell.
getNotes() - Returns the notes associated with the cells in the range.
There are open issues related to this functionality, mainly concerning comments (the "other" type of note). See Issue 1818 and Issue 2566
In a comment on your question, SGC asks if you've looked at developers.google.com/drive/v2/reference/comments/get and developers.google.com/drive/v2/reference/comments/list; these are FILE level comments, not the comments attached to a spreadsheet cell.
1 - Add the following custom function to your spreadsheet (through the Tools -> Script Editor menu)
function getNote(cell) {
return SpreadsheetApp.getActiveSheet().getRange(cell).getComment()
}
2 - on your spreadsheet use the following formula to get contents
=getNote(cell("address",a1))
or
=getNote(cell("address",E9),GoogleClock())
if your comments are not static.
Bit of a muck around but it's possible to download the googlesheet as a .xlsx file, which, with varying degrees of success, converts the comments into Excel comments.
Uploading this xslx file converts the comments to notes!
There is a difference between Note and Comment.
getNote is working fine. You create a Note by using the cell menu "insert Note" , and not "insert Comment"
Very sad, but there is no getComment. The example of Oren did not work for me either.

Yahoo Pipes RSS: Copy link to looped results from Twitter search

I am using Yahoo pipes to make automated Twitter Searches using terms from the description fields of an RSS feed.
Pipes makes one search from each item in the feed. Each search returns a set of results which are assigned as item.twitloop (all results)
I would like to replace the link from each item in the results with the link from the original query item;
So far I am only able to assign the original link to the first item in the results list rather than to each item.
http://pipes.yahoo.com/pipes/pipe.edit?_id=01f5f60eb8f3c22b45aa3708e5ae057a
Can anyone see where I'm going wrong?
The pipe isn't loading for me - perhaps you didn't set it as public? In any event, I have solved similar problems in the past by using the Loop module. You put the assignment into the loop (usually a string builder works well), and then have the Loop put that original link into item.link.

Resources