You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to connect via API. For this I have run the installation with: pip install git+https://github.com/openlegaldata/oldp-sdk-python.git
Then I copied your "Getting Started" example and replaced 'YOUR_API_KEY' with mine:
from __future__ import print_function
import time
import oldp_client
from oldp_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = oldp_client.Configuration()
configuration.api_key['Authorization'] = 'MY_api_key'
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.AnnotationLabelsApi(oldp_client.ApiClient(configuration))
data = oldp_client.AnnotationLabel(name="Fein", slug="muh") # AnnotationLabel |
try:
api_response = api_instance.annotation_labels_create(data)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnotationLabelsApi->annotation_labels_create: %s\n" % e)
When I start the program now, 2 error messages come up immediately:
name and slug are missing in oldp_client.AnnotationLabel
According to the documentation these values should be filled with "Verbose name, e.g. This Awesome annotation" and "Identifier, e.g. this-awesome-annotation".
Could you flesh this out a bit in the example? I don't understand what is meant by this.
When I enter anything for name and slug I get the following response:
Hey guys,
I would like to connect via API. For this I have run the installation with:
pip install git+https://github.com/openlegaldata/oldp-sdk-python.git
Then I copied your "Getting Started" example and replaced 'YOUR_API_KEY' with mine:
When I start the program now, 2 error messages come up immediately:
According to the documentation these values should be filled with "Verbose name, e.g. This Awesome annotation" and "Identifier, e.g. this-awesome-annotation".
Could you flesh this out a bit in the example? I don't understand what is meant by this.
When I enter anything for name and slug I get the following response:
And where exactly can I enter my question to openlegaldata in the example?
Thank you very much :)
The text was updated successfully, but these errors were encountered: