I can get the course list of particular student by signin with the student's credential.
private let scopes = [kGTLRAuthScopeClassroomCourses],
but i need the kGTLRAuthScopeClassroomAnnouncements and have to query using the let query = GTLRClassroomQuery_Announcement.query().
But it is not available for swift classes it seems,
how to get that? Ur help will be very much appreciated.
After a R&D of the client api,the library which is already built in objective C was the clue. I was checking for announcements in that, unfortunately it was missing in my library. So i changed the files which i separately downloaded. Now i got the announcements and also the query. It made me look into the library files deeper.
Related
I'm new to Google's API and I'm having trouble reading the content of a People contact.
To get the details of a particular contact, references show this code should work [Edit: I updated the personfields]:
profile = service.people().get(resourceName='people/c63810788897573286', personFields='names')
The resourceName is the ID of a particular contact (that ID will only work for someone with access to my account). The server grabs it correctly and returns this:
<googleapiclient.discovery.Resource object at 0x10fd183c8>
How do I read the content of this object? I can't figure out from the documentation
I want to print out the Name. I'm pretty new to APIs, so maybe there is a standard way to read an HTTP object or maybe it's something unique to Google's API. Thanks for any advice
I found an answer in another somewhat related StackOverflow. I needed to the add .execute() to the call
profile = service.people().get(resourceName='people/c63810788897573286', personFields='names').execute()
I am listing my projects as follows:
listProjectsResponse, err := projectsListCall.Do()
Where a projectsListCall is a type provided by the cloudresourcemanager and its v1beta1 API.
I couldn't find a way though to be able to retrieve a the Organization a project belongs to. Is this feasible using the above api/sdk?
I am able to access the Parent field of a Project which is of type *cloudresourcemanager.ResourceId, however I cannot find a way to traverse up the tree until I reach the Organization.
What is more, I think it would be easier to find a way to say:
Given this Organization, list me all its projects.
Is there a way to accomplish this?
The Go SDK allows to retrieve that information through the methods "ProjectGetAncestryCall" and "OrganizationsGetCall". If you dig a bit in the documentation you'll see that the methods call the API endpoints mentioned by Kolban in his comment.
Moreover, whenever a doubt of this kind arises you might try searching the corresponding API endpoint in Google's documentation and then search for it in the Go SDK documentation because generally the endpoint is mentioned there.
Is there a way to create,edit, or list rubrics?
I see in the documentation I can create coursework, but one of the key pieces of coursework is the rubric.
Unfortunately, the option of editing, creating and/or listing rubrics through the API is not possible.
You can do all of the things mentioned above by using the Beta version of the Google Classroom by using the UI available.
For more information on that matter, you can check the following links.
Rubrics Beta Participation Application;
Sign up for Classroom beta programs;
Grade with a rubric.
Rubrics have not been added to the CourseWork API however there is an issue in the Google Issue Tracker here.
I think it's probably simplest to start with my use case:
I'm trying to read the contents of a Google Spreadsheet into ruby, and then use that data for other purposes. This needs to happen server-to-server.
Here's what I've tried:
First I tried to use this google drive gem. Since my interaction needs to be server to server (i.e. a service account), I couldn't get this to work (someone please let me know if they've managed this!)
Next, I tried using the latest google-api-ruby gem, and, following its documentation, was successfully able to authenticate my service account, and have been able to get lists of files, etc. So basically the API is authenticated and working.
The latest issue is that Google Spreadsheets can't be downloaded using the normal download_dest parameter on the get_file method (sorry - would post links to relevant documentation here, but don't have enough rep to do so). So I'm not really sure how to proceed with downloading the relevant file (I understand how to get an export_link), but have no clue how to then prepare the next request).
Any help would be greatly appreciated :)
Here's some basic code for reference -
require 'googleauth'
require 'google/apis/drive_v2'
scopes = ['https://www.googleapis.com/auth/drive']
ENV["GOOGLE_APPLICATION_CREDENTIALS"] = 'path/to/my/creds.json'
auth = Google::Auth.get_application_default(scopes)
drive = Google::Apis::DriveV2::DriveService.new
drive.authorization = auth
ss = drive.get_file('my_spreadsheet_id')
export_url = ss.export_links
# what now?
I have a company: http://local.yahoo.com/info-19134823-integrity-roofing-painting-houston
And I want to get reviews from it. I tried to use LocalSearch API... No results. Does any company ID existed? If it is, I can ask my client to provide it... Maybe I should use not localSearch, maybe other API. Help me please.
P.S. I saw Local API(http://developer.yahoo.com/search/local/V3/localSearch.html)
Update: I've found that I should use listing_id param. Is it correct? Where can I find it if I have a dealer link?
I have figure out how to do it:
http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo&listing_id=19134823&query=*&output=json
All needed was query=*