Is it possible to read the actions & objects created with the new Open Graph?
I might be wrong (did not test) but according to these docs you'd need the following extended permissions
user_actions.{vertical_name}
friends_actions.{vertical_name}
or
user_actions:{app_namespace}
friends_actions:{app_namespace}
Related
I'm creating tag templates programmatically and it doesn't appear in the section "Tag Templates" (the creation of each tag template was successful because I can attach it in each table), but when I create those tag templates by hand, they appear as a list.
Btw I'm trying to list the tag templates that I created, with the following sentence:
tag_list = datacatalog.list_tags(parent=f"projects/{project_id}/locations/{location}")
but when I print it says
google.api_core.exceptions.InvalidArgument: 400 Malformed Data Catalog resource name projects/sybogames-analytics-dev/locations/us.
anyone knows why?
thanks in advance.
I'm unfamiliar with the Data Catalog service but, looking at the possible methods in APIs Explorer, I think (!?) you may need to terminate parent with /entrygroup/{entrygroup}.
There are 2 (!?) possible methods for list_tags:
entryGroups.entries.tag_list
entryGroup.tags.list
Both define parent similarly and require /entryGroups/{entrygroup}:
The resource can be an Entry or an EntryGroup (without /entries/{entries} at the end). It takes the form projects/{project}/locations/{location}/entryGroups/{entrygroup}/entries/{entries}.
You can use APIs Explorer to invoke either method to test it.
You can also use gcloud data-catalog tags list and, if you append --log-http to it, you'll be able to see exactly what underlying REST call is being made.
I am trying to use the await page.deleteVisual("8d0e01e7a860c2e5706d"); command when I layout a report page. This seems logical to me. I am going to place various visuals on the page for a certain group of people. For another group of people I will delete a few other visuals and keep this one. I get the following error:
TypeError: report.deleteVisual is not a function at changeLayout (PQLayout.js:56)
Most of the documentation pages are bare and lacking good examples, but this page doesn't help much for the error: https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/remove-visual
Thanks
deleteVisual is a method provided by the Page object but from the error it seems you are calling it for the report object. You should use page.deleteVisual("VISUAL_GUID") to delete the visual.
deleteVisual is a method of powerbi-report-authoring SDK.
You can refer to the live showcase to understand the usage of this SDK:
Live showcase: Quickly create and personalize visuals
Showcase's source code: https://github.com/microsoft/PowerBI-Embedded-Showcases/tree/main/Quickly%20create%20and%20personalize%20visuals
Docs: https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/remove-visual
I am using great expectations to test streaming data (I collect a sample into a batch and test the batch). The issue is I cannot use the docs because this will results in 100 of 1000s of html pages being generated. What I would like to do is use my api to generate the page requested from the json result when the specific test results are clicked on (via the index page). Is great expectations able to generate only 1 html which can be disposed of when it is closed?
If you are using a ValidationOperator / Checkpoint, then using the UpdateDataDocsAction action supports only building the resources that were validated in that run, and is the recommended approach.
If you are interacting directly with the DataContext API, then the build_data_docs method on DataContext supports a resource identifier option that you can use to request only a single asset is built. I think to get the behavior you're looking for (a truly ephemeral build of just that page), you'd want to pair that with a site configuration for a site in a temporary location, e.g. /tmp.
The docs on the build_data_docs method are here:
https://docs.greatexpectations.io/en/latest/autoapi/great_expectations/data_context/data_context/index.html#great_expectations.data_context.data_context.BaseDataContext.build_data_docs
Note that the resource_identifiers parameter requires, e.g. a ValidationResultIdentifier object, such as:
context.build_data_docs("local_site", resource_identifiers=[ValidationResultIdentifier(
run_id="20201203T182816.362147Z",
expectation_suite_identifier=ExpectationSuiteIdentifier("foo"),
batch_identifier="b739515cf1c461d67b4e56d27f3bfd02",
)])
I'm trying to post a note using Facebook Graph API.
I would like to restrict the note visibility to myself only.
Therefore I am passing the following param: privacy={'value':'SELF'}
Unfortunately it is still created with the EVERYONE privacy.
Do you know if there is a way to specify privacy when creating a note?
Thanks
As far as I can tell from the documentation, "privacy" doesn't exist as a field for notes, so I don't believe it's possible. Here's the reference: http://developers.facebook.com/docs/reference/api/note/
Does anyone have a smal example of how to programmatically, in c/c++, load a users registry hive? I would loike to load a hive set some values and close the hive.
Thanks in advance for any help.
Tony
You can use RegLoadKey() and RegUnLoadKey(). You can build the paths to the user hives (NTUSER.DAT) via the HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. However, it's generally not a good idea to use these functions willy-nilly. If the user tries to logon while you have his profile loaded, he will be unable to load his profile and will get a temporary default profile.
Documentation says you should pass predefined key HKEY_CURRENT_USER as first argument of RegOpenKeyEx function.
You can also enumerate HKEY_CURRENT_USER passing it directly to RegQueryInfoKey.
I haven't got a specific example, but the Windows API calls you need would be:
RegOpenKeyEx() to load the registry
key
RegSetValueEx() / RegGetValue() [and sister
functions] to get/set registry values
RegCloseKey() to close the
registry.
There's some example code behind this link on codersource.net ... although I can't vouch for how complete or correct it is. Review against the MSDN :-)