The output in the runs API endpoint for the contact is this:
"contact": {
"uuid": "f7939441-...-...-1111-111111111",
"name": null,
"urn": "facebook:********",
"urn_display": null,
"anon_display": "000000000"
},
However, the in the Run object of the client, only the uuid and the name are included.
I believe that the cause is that in the types.py file, within the Run class definition the contact is defined as an ObjectRef
class Run(TembaObject):
...
contact = ObjectField(item_class=ObjectRef)
...
However, the ObjectRef only has name and uuid (also defined in types.py):
class ObjectRef(TembaObject):
"""
Used for references to objects in other objects
"""
uuid = SimpleField()
name = SimpleField()
Potential solution:
A specific item_class may need to be defined.
The output in the runs API endpoint for the contact is this:
However, the in the
Runobject of the client, only theuuidand thenameare included.I believe that the cause is that in the types.py file, within the
Runclass definition thecontactis defined as anObjectRefHowever, the
ObjectRefonly hasnameanduuid(also defined in types.py):Potential solution:
A specific item_class may need to be defined.