Open
Description
Doing this efficiently means leaning on the rule that all activity IDs must be prefixed by the publisher’s org ID.
E.g.:
import iatikit
activity_id = 'GB-COH-07676886-999999'
activity = iatikit.activities().find(iati_identifier=activity_id)
if activity:
print('success! Found activity with IATI identifier: "{}"'.format(activity_id))
else:
print('failed! Could not find an activity with IATI identifier: "{}"'.format(activity_id))
# failed! Could not find an activity with IATI identifier: "GB-COH-07676886-999999"