How to pin an announcement on google classroom - google-classroom

In 2020 aprox Google introduced the option to pin an announcement at the top of the list (in the main page of the classroom), manually is an option inside the colon menu after you create an announcement.
I 'd need to use this option in a script, because I need to pin a document with rules in every classroom I have, but I can't find any reference in Classrooms API.
Can someone help me?

I do not believe this is possible programmatically at this time as there is no reference in the API to be able to do so with either announcements or course work materials, as you mentioned. I had looked to try to accomplish the same thing and came to the conclusion it's not yet supported. You could post this as a feature request in the Classroom issue tracker, I'm surprised I don't already see it there: https://issuetracker.google.com/issues?q=componentid:191645%20status:open
One alternate solution to make course work added via script easier to access as it gets pushed down the classroom feed is to make it posted to it's own topic:
https://developers.google.com/classroom/reference/rest/v1/courses.topics

Related

Create pop-up announcements upon login?

I want to get all of my users to see announcements. As you already know, we can't force everyone to use a dashboard that would have the announcements located in it as outlined here: https://www.powerobjects.com/blog/2011/11/22/adding-announcements-to-the-dashboard-in-crm-2011/. I could add this component to the most frequently-used dashboards, but I'm not going to get complete compliance. Too many people use user-defined dashboards and views. Further, not all of our users use email or other correspondence consistently, so my channels of communication for updates to the system are limited. My best bet was to create a popup upon login containing announcements, akin to the "pending email" warning, which would appear upon login regardless of any other conditions:
I've dug around to try and see where that warning comes from, in hopes of reverse engineering it to build a new component... but I just couldn't figure it out. I've seen options on how to disable or circumvent it, which naturally is the opposite of what I'm trying to do.
Is something like this possible?
Unfortunately this is a missing most wanted piece/feature even today in latest 365 versions.
We are using Web resources in global dashboards to socialize such thing, as announcements are deprecated. We cannot circumvent personal dashboards as default scenario.
We are planning to explore Learning path for this requirement, but that’s not applicable for your version.

Creating contact folders with Outlook REST API?

Is it possible to create contact folders with Outlook REST API? I've looked into the docs for Outlook Contacts API and found only references to fetching existing contact folders (even in the beta version).
Other questions seem to focus on using C# and probably some specific SDK for that. I'm using Python, so that wouldn't work for me. I haven't found, both on StackOverflow and through Google in general, any definitive answers to this question. From the lack of any mentions in the docs, I'd assume it's not possible, but just wanted to get a definitive and/or official answer on that matter, if possible. Also please let me know if I missed something during my research.
Thanks!
There is a create folder operation, although it seems specific to Mail folders and doesn't take any parameters that can specify a folder type. It's possible it may take on the same item type as the parent folder, but I'm not certain.
Otherwise there is a create method specific for Contact folders in the Graph API; see https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/contactfolder_post_childfolders.
If you want a Python specific SDK, see: https://github.com/microsoftgraph/msgraph-sdk-python. Code samples: https://github.com/search?q=python+sample+user:microsoftgraph&type=Repositories
FYI, you can use any code platform to work with the Office 365 or Graph APIs, as long as they support REST.
After reading #Eric Legault's answer it gave me an insight to try something blindly. Even though the docs do not state it, you can create a folder by doing a POST to the contact folders endpoint with DisplayName property in the body.
So do
POST https://outlook.office.com/api/<version>/me/contactfolders with {"DisplayName": "folder_name"} in the request's body and it will work, returning the usual 201 Created response code.
This worked for me in both v2.0 and beta endpoints.
As of this writing, Outlook Contacts' UI (self-entitled Outlook People) is terrible and not user-friendly at all (either that or I just suck at understanding it), so I actually don't know how to create or delete contact folders through it, but I'm glad the REST API does the job :)

New Google Plus Comments in Blog - How to View / Receive Notifications?

I have a Blogger blog and I used to have Blogger's own comment system in it. I didn't like some parts of it, so I tried changing to Google+ comments instead.
I have no problems with the comment box, it's implemented well, works fine, etc. But when I had Blogger comments, I could see the newest comments my visitors had posted site-wide and I also received email notifications when someone posted a comment in any post of my blog.
However, now, with Google Plus comments, I don't seem to get any sort of notification. (no emails, not even that alert thingy on top-right corner of Google that only ever shows Youtube comments I don't care about) And, also, I know of no way to check the most recent comment in my website.
I kind of need either of these features (most recent / notifications) so I can reply to people when they post comments on my blog. After all I got dozens of posts it's not viable to check every single one of them for new comments every single day.
How can I view the most recent Google plus comments within a website? Or at least receive an email when there is a new Google plus comment posted in my website?
P.S.: I'm not interested in an API for these. There should be an actual user interface somewhere for these things, right?
As it currently stands, this feature has not worked since October 2016.
According to a post by a Google Employee in the official Blogger Forum on 2nd February 2017 -
Hi all,
Thanks for posting.
Just wanted to let you know that the concerned team is aware of this
issue and is working on it. I will keep you all posted as soon as I
get an update from them.
Best,
Theo
Any updates regarding this issue will be likely posted in the above forum thread

Google Drive Api - Document without authorization

I am building an app where two different users will edit the same document online, using only plain text. For this I am using the google-api-php-client-master hosted on github.
There are some examples, but I don't understand what I need to do to achieve my goal. The official documentation is deprecated because it reffers to a library that is not online, and all the classes have different names and ways of working.
I already got my credentials, and know how to get a list of the documents hosted on my drive account. But now I need to:
Create new document
Grant access to a non-google logged in user, just accessing the link
I don't expect anybody to give me a written solution, but to know where I have to start.
Thanks a lot for reading.
Ok im trying to do almost the same thing and this is what i know so far:
Most importantly please reffer to the docomentation: https://developers.google.com/drive/v2/reference
There is a written example on how to create new file!( section files->insert)
One way to make a gdrive file public is to share it to the web via the google api. Another way is to make revision of it( section revision->update) and then publish it( by setting "published" = true in the update request).
Being aware of your requirements i gues that the publishing wont really help you achieving your goal, because it is just a revision of the document from the past and not its current state.

New settings in the Group Settings API...were these announced?

I noticed some new settings in the Google Group Settings API...were these announced? Where should we look for such announcements?
I assume you're referring to spam moderation and include in GAL? No, they weren't announced to my knowledge. Google's getting better at announcing changes but they still slip in updates like this from time to time with no way of knowing till you happen to find it buried in ref. docs.
I suggest tracking the doc pages where possible. I use ChangeDetection.com to get email notifications when reference docs get updated.
This particular change wasn't announced anywhere except for the updated reference docs. Often changes are posted to the Developer's Blog at http://googledevelopers.blogspot.com/, just not for this.

Resources