I have many google classroom invitations and I want to accept all of them through google app script using
Classroom.Invitations.accept("courseId");
but then I get no data back...
so I tried listing all my invitations using
Classroom.Invitations.list({"userId":"my_email"});
and still I get no data back...
I am very sure that my google classroom is full of unaccepted courses
You need to consider, The strip()
removes or truncates the given characters from the beginning and the end of the original string.
string= "this is my \n string"
print(string.replace('\n ', ''))
this is my string