I'm Uğur,
https://developers.notion.com/reference/retrieve-a-database
https://api.notion.com/v1/databases/database_id
I used "https://www.notion.so/111111111111111111?v=222222222222222" as a database ID. (http://prntscr.com/22cn4dp)
I used "Authorization: Bearer $NOTION_API_KEY and Notion-Version: 2021-08-16" as a cURL.
I used it with Postman but I got an error.
Error Code:
{
"object": "error",
"status": 404,
"code": "object_not_found",
"message": "Could not find database with ID: 1111111111111111."
}
How do I solve it?
Notion's update has changed the location for Integration. Now you'll find it here:
Go to the database page in your workspace.
Click the ••• on the top right corner of the page.
At the bottom of the pop-up, click Add connections.
Search for and select your integration in the Search for connections... menu.
Your integration now has permission to edit the database.
I had the same issue for a few days now. The problem I had was quite simple and turns out that I just never had the workspace shared with my integration.I [checked this video][1] at around 3 mins and only then realised that you need to share your pages and databases with the integration
Your Notion-Version looks correct but your database id should be the content after your Notion page url i.e. https://www.notion.so/DatabaseiD. Also if you're using Postman your Authorization should be set to type 'Bearer Token' with the Notion API Key that you obtained from your integration found here.
I had some trouble getting notion to work with Zotero using the Notero plugin. I created the integration and created the database but I did not explicitly share the database with the integration. After sharing the database with the integration, Notero works perfectly.
To share the database with the integration after creating the database and integration
Go to the Notion page containing the database
Click the share button in the upper right corner of the Notion window
In the text box type in the name of your integration (In the picture below my integration was called "papers")
Select your Integration (the window should now resemble the picture below)
Alter a citation in Zotero to confirm that your integration works.
Did Notion redesign/update that Share popup shown in the screenshot by alluppercase? I created an internal integration, but I am only seeing "add emails or people". (And when I try to connect in my react app - I get the error - APIResponseError: Could not find database with ID)
Related
I want to use an api, but i can't find the Ocp-Apim-Subscription-Key at the page below:
Thanks.
You can find it by going to API Management services, then APIs. Select your API, your endpoint and then select the Test tab on the right hand side. Go down to Headers and against Ocp-Apim-Subscription-Key you will see it hidden; select the eye to see it.
please, following the instructions below.
You have to go through the azure portal and select your API
management component then click on the Publisher Portal in the
left top corner.
Go through the APIs and then Products tab.
Click on the ADD API TO PRODUCTS button and then select an
appropriate option.
Go through the azure portal again, but click on the Developer
Portal in the left top corner.
Click on the ComboBox which is placed on the right side and
choose Profile.
You will be able to see the access keys for the products and pick
the key for the product which you have chosen in the previous steps
(Starter or Unlimited).
Method 1:
From https://portal.azure.com/ go to your API Management service -> Subscriptions
There will find default ones and some created by your own.
Method 2:
Via https://resources.azure.com/ using HTTP GET method
az rest --method get `
--uri 'https://management.azure.com/subscriptions/{SUBSCRIPTION_ID}/resourceGroups/{RESOURCE_GROUP_NAME}/providers/Microsoft.ApiManagement/service/{API_MANAGER_NAME}/subscriptions?api-version=2018-01-01' `
--query "value[0].properties.primaryKey" | ConvertFrom-Json
Explanation:
Replace placeholders {SUBSCRIPTION_ID},{API_MANAGER_NAME},{RESOURCE_GROUP_NAME} by your own values
"value[0]. -> indicates the required key value: first,second in the list, because as you can see in the portal there are multiple for different scopes: Starter, Service access, Unlimited etc.
properties.primaryKey -> each value has 2 defined keys: primaryKey and secondaryKey
api-version=2018-01-01 -> check the right version, can be found from https://resources.azure.com/ or from ARM template for the API Manager resource
I found the subscription key here:
In the Azure portal, navigate to the "API Management service".
Go to "Subscriptions" under the "APIs"-heading.
Press "Add subscription".
Enter a "Name", select API as "Scope" then select your API under "API".
Press "Save". This will create a subscription for the selected API.
In the list of subscriptions, locate the subscription you just created, then press the "..."-button to the far right.
Press "Show/hide keys".
The subscription key is visible and can be copied from the "Primary key"-field.
Not sure where everyone is getting their answers from...
Maybe it's just old information, but at this time you can find them by doing the following:
Go to portal.azure.com
Select "Create a resource"
Create a resource. I'm using computer vision so I search for that and hit enter
Select "create"
Go to the newly created resource
On the left side panel under the "Resource Management" section select "Keys and Endpoint"
Key 1 and Key 2 are used as the "Ocp-Apim-Subscription-Key".
That's it. Those should work for you wherever it asks for the "Ocp-Apim-Subscription-Key".
This is how I found the keys
go to the resource
Click developer portal
Click the username on right-handhand side (for me it was "Administrator"). This will drop down a menu list
Click Profile
See a list of all keys. you can click the show link to view the keys and copy them
(August 2018) For our purposes (AI / ML) I found it under Cognitive Services > Resource Management > Keys - https://portal.azure.com/#blade/HubsExtension/Resources/resourceType/Microsoft.CognitiveServices%2Faccounts
It will be under other services though I can't say which (as you have to be using one to see the attributes of it).
It's also called the Programmatic Key. As of January 2018, if you log on to luis.ai, you can find it under settings (when you click on your name in the upper right hand corner).
Not sure why the LUIS Api documentations say the key is in azure and why there's a naming difference :/
<Bugpicture_1_1丨Bugpicture_1_2>
As you can see.I have two instances in total,but I only can control one of them.
I can't see the other one on Bluemix console either.
I wonder to know how to delete that one.
I can't terminate the instances in the secound picutre.
I had tried many times to do that.
After wating,nothing happened.And its status is error.
I don't know what should I do.
I suggest you to open a support request using one of the following methods:
Use the Support Widget. It is available from the user avatar in the
upper right corner of the main Bluemix UI. After opening the support
widget panel, select Get Help > Get In Touch , select the type of
assistance you need, and then fill out the support form.
Use the Support Site 'Get Help' form. This form is available on a separate site that is made available for ticket submission when you cannot log into Bluemix and access the Support Widget. Go to http://ibm.biz/bluemixsupport and fill in the support request form.
My web site used to have a link to let users login with their Google accounts in Open ID 2.0. Since 20.4.2015, this is no longer working, so I am trying to migrate to Google Sign-In.
This page:
https://developers.google.com/identity/sign-in/web/sign-in#specify_your_apps_client_id
says:
Specify the client ID you created for your app in the Google Developers Console with the google-signin-client_id meta element.
I have no idea what my client ID is. In my Google Developers Console:
https://console.developers.google.com/project
there is only a single, very old application I created with GoogleApp, which is not related at all to the website I am talking about. I tried using its project ID anyway, and got the following error after clicking the sign-in button:
401. That’s an error.
Error: invalid_client
The OAuth client was not found.
Request Details
fetch_basic_profile=true
scope=email profile openid
response_type=permission
redirect_uri=storagerelay://http/localhost?id=auth684995
ss_domain=http://localhost
client_id=imitatorgwt.apps.googleusercontent.com
openid.realm=
That’s all we know.
What exactly should I write in the google-signin-client_id meta tag?
You need to create/configure a Google OAuth client. For detailed instructions on how to do so for Google OpenID2 -> OpenID Connect migration, check out Google's migration dev docs (in particular the pieces related to Google Developers Console).
A possible work-flow is:
Go to Google Developer Console.
Under "Select a project" on the top, select "Create new project" and fill the details.
In the dashboard on the left, go to "API & Auth" -> Credentials.
Under "OAuth", click "Create new client ID".
Under "Application type", select "Web application".
Under "Authorized Javascript origins", enter the URL(s) of your website. The "Authorized redirect URLs" are updated automatically.
Click "Create client ID".
The new client ID can be accessed any time by going to "Credentials" in the left dashboard. It looks something like this: "3453453452345-dfgjw3456u2094mlfg45p.apps.googleusercontent.com".
Hope that helps!
UPDATE
We have updated the referred documentation with instructions on how to create Google projects+client ids, see https://developers.google.com/identity/sign-in/web/devconsole-project. That should make things easier for developers in the future.
Again, thanks for reporting the problem!
Having implemented "Google Sign-in for Websites" in a couple of projects, at first the Google guideline confused me a bit at the following line:
<head>
<meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">
</head>
The line <meta name="google-signin-client_id"... at first got me thinking that i needed to place some google-id here.
Now to answer the question:
What exactly should I write in the google-signin-client_id meta tag?
<meta> is part of HTML standard, and this tag provides metadata (or information) about the HTML Document. Metadata will not be displayed on the page, but will be machine parsable. source: w3schools html reference.
Therefore just remember that the "name" attribute of the tag just literally specifies a name for the metadata. In other words, it just describes the "content" attribute. Try changing name="google-signin-client_id" to say name="my-content" and see what happens.
Always remember: the best way to learn is try, fail, debug and correct.
Yep, newbie question here, but it's bothering me for some days now, trying to read all the docs on google developer site, but I'm spinning in circles.
I've created a Fusion Table and set the access to 'public' and got an ID.
According to Goolge I should have an API key to access the data from a REST-call. Google suggests:
Go to the Google Developers Console.
Select a project, or create a new one.
In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure the status is ON for the Fusion Tables API.
In the sidebar on the left, select Credentials.
I can do that all I've got an API-key, but how does this relates to the Fusion Table I've created? Can I use that API key for
this is really simple API key give the ability to do the most of mysql request type SELECT,INSERT,UPDATE,DELETE using GET and POST also PUT request , for GET you can use the navigator for that but the most effective way for your case is the use of curl librairie for php or jaira for java ... so you can send post or put request with a simple script.
So, what you can do with fusion table is automating the process of manipulating data and the option to share those data with someone else.
Edit: procedures changed since this post. Your mileage may vary
Head to the Google Developers Console
Create a project
Under Explore other services click "Enable APIs and get credentials like keys"
Search for Fusion Tables
Enable Fusion Tables API as a service under APIs & Auth --> APIs
You probably want the browser key. Grab the API key.
Happy Mapping...
API-keys are not related to specific Fusion Tables, they are related to projects.
You may use the key to request data from any public and downloadable FusionTable(not only your own Tables ), the key basically is used to identify your project(google-account) .
So when you have problems with requesting data from a public table, check if the table is downloadable too(click on the table-name on top-left->reuse access->allow downloads ).
Context:
The Web interface coded in .NET (Grantee Portal for nonprofits applying for grants) is pulling information from the Salesforce Page Layout.
The Salesforce user we use to connect the Web interface with Salesforce via API has 'view all and edit all' rights
Issue:
As it is now, if a field is defined as Read-Only on the Page Layout in Salesforce, it is still editable on the web page (the Salesforce User we use has to have 'view all and edit all' rights)
What we are trying to achieve:
IF a field is defined as Read-Only on the Salesforce Page Layout
THEN the same field should be Read-Only on the Web interface page
Question:
To achieve the above, I guess that I need to fetch the field property for the Page Layout via API. Any ideas on how to do so?
Thank you!
Izumi.
You'll need Metadata API (the set of webservices that let you add new objects, fields, picklist values or even create classes & run unit tests).
Here's the API Guide: http://www.salesforce.com/us/developer/docs/api_meta/index.htm
Depending on how often you modify layouts you might decide "screw it, I'll just use Eclipse IDE". In that case you'd download all page layouts (they're XML files), point your C# app to them and let the magic happen.
Slightly more advanced is to use Migration Tool (Ant / Java based application that can be scripted for periodic download of same stuff).
Super advanced would be to use this API guide to write it in C#. It's not rocket science (here's the specification for Page Layout object and here's the Java sample code for the operation that retrieves the metadata... sorry, no C#). Actually you might be better off looking at this example though: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describelayout.htm
Seeing that you'll probably want to cache this info somewhere anyway (I can't imagine your user coming to your page, having to wait for the webservice callout to complete, then having his UI rendered) - pick your poison.
Or share the work within the team (1 person kicks off with files downloaded with Eclipse, other tries to figure out the C# code to retrieve them on demand).