Retrieve an opportunity
opportunity.retrieve(strid) -> OpportunityRetrieveResponse
GET/v1/opportunities/{id}
Retrieves a single opportunity by its ID.
Required scope: opportunities:read
Rate limit category: Read
Parameters
id: str
Unique identifier of the opportunity to retrieve.
Returns
Retrieve an opportunity
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
opportunity_retrieve_response = client.opportunity.retrieve(
"id",
)
print(opportunity_retrieve_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
}
}