ibm-cloud-docs / watson Goto Github PK
View Code? Open in Web Editor NEWCommon content for Watson
Common content for Watson
On this page - https://cloud.ibm.com/docs/speech-to-text?topic=watson-keyservice#keyservice-about
Step 3 reads like this:
After you add a root key to Key Protect, you use Cloud Identity and Access Management (IAM) to authorize access between the Watson service and Key Protect.
You must be the account owner or administrator on the Key Protect service instance and at least the viewer role on all instances of the Watson services.
Step 3 SHOULD read like this: (fixes are in bold italics)
After you add a root key to Key Protect, you use Cloud Identity and Access Management (IAM) to authorize access between the Watson service and Key Protect.
You must be the account owner or administrator on the Key Protect service instance and at least the viewer role on all instances of the Watson services.
documentation says: "pip install --upgrade ibm-watson" but should say: "pip3 install --upgrade ibm-watson"
After creating my account, I can access the catalog items but can't use free proposals without completing my billing information.
My request is on that point, I entered my billing information (correctly) and authorize the "$0" verification but rejected.
Why this step is not present in the "Getting started" Ibm Cloud page tutorial?
My best regards!
The documentation is a bit confusing with the first 2 curl commands in the "Getting an IAM token by using a Watson service API key" section. The first curl command to get the IAM token does work, but the issue is later on when you refresh the token, it fails due to a mismatched Authorization header. If instead you use the 2nd curl command, then the refresh token call works. Is there a need to have the 1st curl command documented here, or should that be removed and all IAM token calls just use the 2nd command with --header "Authorization: Basic Yng6Yng=" ? Seems to be simpler and a best practice to always pass the Authorization header if it's just a hardcoded literal for the CLI and allows you to refresh your token
https://cloud.ibm.com/docs/services/watson?topic=watson-iam#iamtoken
The first call to get an IAM token is basically correct, but is using the deprecated URL iam.bluemix.net
. The second call is incorrect.
Please compare with this section from the IAM team:
https://cloud.ibm.com/docs/iam?topic=iam-iamtoken_from_apikey
Note that there is no refresh case described - in the API key case, there is no refresh token necessary, the user should always request a new access token using the API key.
please add link to page for creating API-key
Hello,
I'm trying to generate an API token using my API key by using fetch instead of curl. I'm running into what seems to be a cors issue. Attached is my fetch code... Am I missing some option or any advice? Thanks
let token_endpoint = 'https://iam.cloud.ibm.com/identity/token?grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey={my_api_key}'
fetch(token_endpoint, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json', 'Authorization': 'Basic Yng6Yng=' } })
.then(res => console.log(res))
.catch(err => console.log(err))
This documentation mentions {url}
several times. What is this and where do I find it? There are several sections about API keys, there needs to be a section about API URLs.
help who wants to tutor me can i run wqtson studio and open scale on lite service instance
I have invented "MR Natural Superintelligence software design formula ", directed to secure world peace and endless prosperity for the humanity, and your role is vital, congratulations. Please, we need to establish emailing negotiations with perfection and the possibilities are endless [email protected] ๐ mrworldpeace.com
public class Personality {
public void invoke(){
String VERSION = '2017-10-13';
String service_url = 'https://gateway.watsonplatform.net/personality-insights/api';
IBMWatsonAuthenticator authenticator = new IBMWatsonIAMAuthenticator('');
IBMPersonalityInsightsV3 personalityInsightservice = new IBMPersonalityInsightsV3(VERSION, authenticator);
personalityInsightservice.setServiceUrl(service_url);
IBMPersonalityInsightsV3Models.ContentItem contentItem = new IBMPersonalityInsightsV3Models.ContentItemBuilder()
.content('text/plain')
.id('test')
.created(1)
.updated(1)
.contenttype(IBMWatsonHttpMediaType.APPLICATION_JSON)
.language('en')
.parentid('test')
.reply(false)
.forward(false)
.build();
IBMPersonalityInsightsV3Models.Content content = new IBMPersonalityInsightsV3Models.ContentBuilder()
.addContentItems(contentItem)
.contentItems(new List<IBMPersonalityInsightsV3Models.ContentItem>{contentItem})
.build();
IBMPersonalityInsightsV3Models.ProfileOptions options = new IBMPersonalityInsightsV3Models.ProfileOptionsBuilder()
.contentLanguage('en')
.acceptLanguage('en')
.rawScores(true)
.consumptionPreferences(true)
.content(content)
.html('<html><body>I love Apples not oranges</body></html>')
.text('Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.')
.build();
IBMPersonalityInsightsV3Models.Profile resp = personalityInsightservice.profile(options);
System.debug('IBMNaturalLanguageUnderstandingV1FTest.testAnalyze(): ' + resp);
}
}
.text ---> in this text enter the manually text how can i pass dynamically text
In the following section: Authenticating to Watson services the grammar of a sentence is incorrect under "Authenticate with IAM tokens".
The grammatical error is in line
The following Curl command generates and IAM access token
Should be
The following Curl command generates an IAM access token
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.