How to create/add a summary band with DynamicJasper? - summary

I couldn't find anything in the official Doc & Exam.
Seems there is not a single "intuitive" method or object in the whole API to achieve this

Related

Using Pinterest Marketing api to fetch all entities?

Is there an edge that would allow fetching all the campaigns, adgroups, etc., of a given advertiser? In researching this I see these:
GET /ads/v3/campaigns/{campaign}/
GET /ads/v3/adgroups/{adgroup}/
...
which return only single entities. I also found that there is an async report that returns entities in batch:
advertisers/<advertiser ID>/entities/batch/
Is this the best way to accomplish this? If so, the doc says it only supports campaigns right now, is that still the case?
Thanks
Sorry to waste your time folks, I've since found more and better doc and discovered that there is this:
/ads/v3/advertisers/{advertiser}/campaigns/
Here is a link to the doc for your own reference:
https://developers.pinterest.com/docs/redoc/#operation/ads_v3_get_advertiser_campaigns_handler_GET

How can I make a Classroom's Post (only with Material) on API call?

My question here is about Google Classroom's API.
When i am in the Classwork tab, I have a button to make posts; one option is "material". This type is not an assignement and does not have an assigned grade. This is a perfect concept: I can add materials, sorted by topics to my classwork page with no grades or assignments needed.
The problem for me is when i go to the api and look for that functionality, you can only see courseWork objects with "ASSIGNMENT" "SHORT_ANSWER_QUESTION" and "MULTIPLE_CHOICE_QUESTION" workTypes. All of those type have grades related, but no option exists for the "MATERIAL" type I can choose from the Create menu.
Nor do Material objects seem to exist in the API call.
Many other objects exist that I can find: coursework, announcements, topics, students, courses, teachers and others, but no material's object. Is this an omission? There is a "material" available but it's used for the attachments IN a CourseWork item, not the CourseWork itself.
Jose- I think I asked the same question as you but might have been clearer with the details. Perhaps check here if answers start to roll in. I have spent hours trying to interrogate objects to find this info with no luck.
Google Classroom API Create Material
I would have added this as a comment but my reputation doesn't allow it.
UPDATE: Huge thanks to #ziganotschka for this:
Indeed, there is a feature request for it already:
https://issuetracker.google.com/issues/127591179
I suggest you to give it a star to increase visibility and get updates
on the implementation status of the feature.

Google api ruby client issue with the insert_calendar method

I am using the google code sample for the google calendar api. This code is supposed to make a new calendar using the google calendar api. I am not clear on how to get access to the insert_calendar method.
Does anybody know where did the client object come from in the results variable? What class does it come from?
calendar = Google::Apis::CalendarV3::Calendar.new(
summary: 'calendarSummary',
time_zone: 'America/Los_Angeles'
)
result = client.insert_calendar(calendar)
print result.id
I don't know how to make a new one of those. When I make a new object like:
client = Google::APIClient.new
and I call methods, on it. I do not find an insert_calendar method. Can some one tell me what object I would need to instantiate in order to have the insert_calendar method?
This is a simple question but I am having a huge problem finding out how to answer this on my own.
The docs page is here. It looks like it's an instance method of Google::Apis::CalendarV3::CalendarService.
Since the usage isn't particularly clear from this documentation, I went to the google-api-client source on Github and used the "search this repository" tool to find where insert_calendar is defined.
It's in this file.
From looking at the source & docs I can advise you try the following code (though I haven't verified this:
calendar = Google::Apis::CalendarV3::Calendar.new(
summary: 'calendarSummary',
time_zone: 'America/Los_Angeles'
)
Google::Apis::CalendarV3::CalendarService.new.insert_calendar(
calendar: calendar,
# other options can go here
)

Ruby viewpoint with EWS

I am trying to get started using viewpoint against EWS within Ruby, and it's not making a lot of sense at the moment. I am wondering where I can get some good example code, or some pointers? I am using 1.0.0-beta.
For example: I know the name of the calendar folder I want to use, so I could search for it, but how to access methods in that folder once I find it? What are the appropriate parameters, etc...
Any advice?
If you haven't read it yet I would recommend the README file in the repository. It has a couple of examples that should put you on the right path. Also, the generated API documentation should give you enough to work with.
http://rubydoc.info/github/WinRb/Viewpoint/frames
At a very basic level you can get all of your calendar events with the following code:
calendar = client.get_folder :calendar
events = calendar.items
I hope that gives you a little more to get started with.
Follow-up:
Again, I would point you to the API docs for concrete methods like #items. There are however dynamically added methods depending on the type that you can fetch with obj.ews_methods. In the case of CalendarItem one of those methods is #name so you can call obj.name to get the folder name. The dynamic methods are all backed by a formatted Hash based on the returned SOAP packet. You can see it in its raw format by issuing obj.ews_item
Cheers,
Dan

Getting Location of Tweets found with Twitter Search API

Whenever I search for tweets using the geocode option, the returned tweets have "null" as their geo property. They are definitely coming from the right place because the location property has a name which is in the correct area, however I want to know what the coordinates of the tweet are so I can place on on a map (specifically Windows Phone).
I've tried a really hacky solution of searching for the location using the geo api, but this seems a really awkward way of doing it and often returns bad results (I want results from Oxford, UK but often the geo search return Oxford, IN for example).
Looking around, it seems Twitter's geolocation is currently broken, but I really need this to work for a presentation on Thursday demonstrating an app we built in a group, and it would really suck if our main feature didn't work.
Twitter's search API is broken. It will not return some information which is available through the regular API.
Once you have found a Tweet, you can try looking it up directly using statuses/show
For example, calling one of my tweets:
https://api.twitter.com/1/statuses/show.xml?id=202471009973051393&include_entities=true
gives
<geo>
<georss:point>51.52505194 -0.132582</georss:point>
</geo>
<coordinates>
<georss:point>51.52505194 -0.132582</georss:point>
</coordinates>

Resources