How can I access Box.com Comments using API - box-api

I am trying to using Box API to get comments that have been made on the files and folders.
I have tried looking at the box content api but could not find anything useful. Am I missing something here?

AS is usually the case it turns out I was not digging real deeply into the documentation.
Here is the link to the documentation for accessing comments in the box.com api.
https://developers.box.com/docs/#comments
The link explains it really well. I cant really think of copying and pasting it here since I wont be adding anything. The key concept in box.com api is the authentication and after that one can simply pass parameters for file_id and then post and go to /comments url and get the response. Then comes the sifting of comments which can also be done using the api.

Related

Onenote notebook, sections and page IDs permanent?

I'm using the API here: https://learn.microsoft.com/en-us/graph/onenote-get-content#resource-paths-for-get-requests to get and write information to pages.
I was wondering if anybody knows whether the IDs retrieved through the API changes. I found this Converting between OneNote Ids for internal vs HTML links?, which says that the runtime IDs change. But I tried a few calls and doesn't seem to change, so I'm very confused.
I'm wondering if there is a key like reference for Onenote objects, as like a google sheet where each sheet has a unique key and that never changes. I'm looking for an anchor like that.
Omer's answer in the thread linked is correct.

Getting Specific Data from Post API in WordPress

I want to link my website's Wordpress database to mobile application; and I am able to generate the APIs using wp-json plugin in Wordpress.
However, there is a lot of unwanted data which I do not want for the app. What are the custom parameters in the API url which will help me get only the information I am looking for?
http://www.indiafastener.com/wp-json/wp/v2/posts/2031
PS: I know I can manage & eliminate the unwanted information through the app as well however I do not want to unnecessarily pile up lot of data & do filters in the App.
Thanks for your time.
Utpal
Modern versions of WordPress have the REST API built into core therefore a plugin isn't required.
To check the arguments for an API call, take a look at the documentation. For retrieving a post, see: https://developer.wordpress.org/rest-api/reference/posts/#retrieve-a-post. There are no arguments for limiting the data provided by the response.
While it is possible to modify the response (https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/), I'd advise against it.
As you pointed out in your question, this data can be managed on the app side. I'd argue that is where you should be dealing with it. It's not about eliminating 'unwanted information' but rather recognising the information you do want.

How to programmatically list the suggested edits in a Google Doc

When listing the comments in a Google Doc file, using the comments.list API method, the returned list only contains "regular comments", and does not contain "suggested edits", i.e. the suggestions that users can make when the document is edited in "suggesting" mode.
Is there any way to programmatically enumerate the suggested edits, and is there a way to programmatically accept them?
I think as of now, you can not get it programmatically. If you check the Google Drive documentation, you will not find any documentation about suggested edits. Also, this SO question prove it that Suggested edits is not yet accessible via API.
The question here is
Can I include "Suggested Edits" from my Google Document alongside the
comments. Can those be accessed via API yet?
And the answer by Mogsdad is NO.
So what can I recommend to you is file a feature request about this issue :)
Unfortunately (yes, in 2020), this is still not possible via the API. It is possible to see what the suggested edit is (added or removed text, changed style, etc.) from the API, but you can't see who made the edit or when they made the edit.
The work around I am currently using is (does not work retroactively):
Subscribe to Google Doc changes via email (Gmail specifically)
Use the Gmail API to get all emails received from comments-noreply#docs.google.com
Parse the email contents to get comments AND suggestions, including when, who, and what
Now that you have the suggestions and comments, you can do whatever you want with it. Save it to Google spreadsheet, save it to .csv, etc.
This answers the first part of your question: programmatically enumerating them. As for programmatically accepting them, currently not possible through the API. I haven't done it, but I believe it is possible to do it via JavaScript.

Google drive preview "/image" API doesn't work anymore?

Few days ago I was able to make request to:
https://drive.google.com/a/{{domain}}/file/d/{{docDriveId}}/image?pagenumber=1&w=400
Via this API I was able to get image preview on multi-page documents.
Seems it's there, but times-out after some time. It doesn't work anymore. Does anyone know what happened? It seems there's no documentation on this API.
On the other hand, I am aware of the thumbnailLink URL when getting document object via API, but this will only get 1st page preview.
Any alternative solutions to this?
Thanks a lot,
M
That URL is not a part of the official Drive API and is not guaranteed to remain stable. The Drive API doesn't include the ability to fetch per-page image previews of documents, but you may want to investigate using the embedLink as an alternative: https://developers.google.com/drive/v2/reference/files

what other params can I pass to the google hangout uri?

I recently discovered a parameter to pass to a google hangout uri to make it "on air": reference
I'm also wondering if I can pass any other parameters. I know that we have app_id, but I'm more interested to know if there are other parameters, such as being able to set the title or the hangout in advance, e.g.
https://plus.google.com/hangouts/_?hso=0&title=EdX%20SaaS%20Pairing
Because then I could direct people to https://plus.google.com/u/0/s/%23hangoutsonair%20EdX/hangouts and they could see all the on air hangouts associated with our MOOC. I did experimentally try passing title=, topic= and name= all to no immediate effect ...
I'd also love to know if there's a way to automatically start the live broadcast, or even better have the hangout be automatically associated with and published to our G+ pair programming community:
https://plus.google.com/communities/100279740984094902927
Many thanks in advance
Got this response from Tim Blasi at Google:
I'm a developer working on video calling. Unfortunately, you can not currently configure the video call in the way you are describing. However, we've received a lot of feedback that this is a pain point and we're currently working to address it. We'll keep your request in mind as we move forward.
https://plus.google.com/u/0/103524399391704001670/posts/JGtpxgvdD5H
resurrecting an old thread, but for a good reason.
i recently found that its possible to bypass the landing page and pre-select your user account
https://meet.google.com/lookup/my-room-name?authuser=my-email#account.com
just replace my-room-name and my-email#account.com