# %%
from ibm_watson import DiscoveryV2
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
# %%
apikey='APIKEY'
version='VERSION'
service_url='SERVICE_URL'
authenticator = IAMAuthenticator(apikey=apikey)
discovery = DiscoveryV2(version=version, authenticator=authenticator)
discovery.set_service_url(service_url=service_url)
# %%
name = 'NAME'
type = 'TYPE'
response = discovery.create_project(name=name, type=type).get_result()
print(response)
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme