I am trying to import a dashbord via the API of Opensearch Dashbords. I could not find anything directly in OpenSearch. The Kibana documentation says:
Import objects API
POST <kibana host>:<port>/s/<space_id>/api/saved_objects/_import
or
POST <kibana host>:<port>/api/saved_objects/_import
the first POST call does not work, I always get a 404 back.
The second POST works but the import is always done into the private tenent.
Does anyone know how I can specify the tennent to import the object to when doing an API import?
Related
Current using Microsoft Graph API v1.0 to create onlineMeetings via POST /me/events. Reason being, if you create an onlineMeeting directly and add a user in the meeting, it doesn't create a calendar event.
The params I use for that call is:
:isOnlineMeeting => true,
:onlineMeetingProvider => "teamsForBusiness"
Which works great and returns a joinUrl under onlineMeetings.
However, I'd like to pull attendance data from the GET onlineMeeting route to get attendance information since the attendees section of the event only seems to return users that were added to the actual event, not who attended the actual onlineMeeting.
I have tried doing a get request like such:
/v1.0/me/onlineMeetings?$filter=joinWebUrl%20eq%20'https://whateverthejoinurlis'
but the response says it's not a valid filter.
Any guidance would be appreciated.
Posting the Answer for better knowledge
Copying from #Shiva Keshav Varma comments
Try it in beta version
/beta/me/onlineMeetings?$filter=joinWebUrl%20eq%20'https://whateverthejoinurlis
You can also get the attendeereport using beta/users/{userId}/onlineMeetings/{meetingId}/attendeeReport as specified in the document.
I would like to import this in sheet doc. I am creating a Dashboard and would love to use the RSS feed to populate the live updates. however, after using the importfeed function or import url function it saves indicating the syntax is correct however no data is populated. Any help here?
I am interested to have a invoice link/pdf from the api which returns the invoice using new freshbooks api endpoint https://api.freshbooks.com/accounting/account/<accountid>/invoices/<invoiceid>
Even including direct_links I am unable to get the link to the invoice. With direct_links it returns json with fields id, contactid, created_date, type, userid, objectid, token.
I currently work at FreshBooks.
Unfortunately these direct link tokens will only work with old FreshBooks, which isn't mentioned in the documentation -- I'll see if we can fix that.
Poking through, it doesn't look like we've has exposed a way to access a PDF version of the invoice through the public API just yet. But I'll pass that on to the appropriate channels and I'll update this answer if that changes.
I am new to working with process maker and I cannot figure out how to get the form for the current task in a process using the GET /cases/{app_uid}/current-task. I am able to create new cases using POST /cases, which go in the draft. I am also able to route those cases and put them in inbox using the /cases/{{app_uid}}/route-case. I can also figure out the variables using the process-variables API endpoint. But I cannot tell which variable is needed by the current task and how to get the options for it.
Is someone aware of this? How to get the dynaform for the current task?
You can use the Designer REST API to find the steps that are part of a given task. In particular, you might be interested in the /steps endpoint. Once you know the steps of a given task (including any dynaforms), you can get the information of the corresponding dynaform with the /dynaforms endpoint, which includes the definition of all Dynaform fields.
You can achieve this through the following steps:
First get the task UID and then call the REST Endpoint /api/1.0/{workspace}/project/{project UID}/activity/{Task UID}/steps to get all the steps for that task.
Iterate through the steps to get the UID of the first dynaform which is stored in step_uid_obj.
To access the Dynaform call the REST Endpoint /api/1.0/{workspace}/project/{project UID}/dynaform/{dynaform UID}. It returns a json object for the dynaform which stores all the properties of the dynaform and the fields.
In order to access the variables you can call the following REST Endpoint, which returns all the variables for that project.
/api/1.0/{workspace}/cases/{application UID}/variables
I am not able to get yt:statistics and corresponding view count using youtube v2 api
Search URI:
http://gdata.youtube.com/feeds/api/videos/-/park/competition?orderby=viewCount&max-results=50&v=2&format=5&fields=entry(title,content,media:group,yt:statistics,yt:rating,gd:rating)
When I print the feed and look for statistics, I can not found it. I believe I was able to get it until last week.
I use PYTHON gdata lib to send/receive requests. It looks like for some feeds I am getting statistics. Does it not come for every feed??
Any pointers??
UPDATE: Similar observations for yt:rating.
Is there a minimum guarantee that yy api provides for statistics/rating?
Without a minimum guarantee, does it not become un-reliable?
Have you tried using the YouTube-Analytics API?
Not sure what the equivalent call in the Python library would be - but for example, this url will get the top viewed videos:
https://www.googleapis.com/youtube/analytics/v1/reports
?metrics=views
&dimensions=video
&max-results=10
&sort=-views
&start-index=1
&start-date={first date of interest}
&enddate={last date of interest}
&ids={your channel id}
You should be able to use the same OAuth token that you're using for the YouTube Data API v2.