Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Given an activity, find the publisher #2

Open
andylolz opened this issue Dec 5, 2018 · 1 comment
Open

Given an activity, find the publisher #2

andylolz opened this issue Dec 5, 2018 · 1 comment
Labels
feature Cool stuff I’d like this library to be able to do

Comments

@andylolz
Copy link
Member

andylolz commented Dec 5, 2018

E.g.:

import iatikit

activity_id = 'GB-COH-07676886-3'

activity = iatikit.data().activities.find(id=activity_id, fast=True)

print('IATI publisher "{pub_name}" has an activity with IATI ID: {activity_id}'.format(
    pub_name=activity.publisher.name,
    activity_id=activity_id))

# IATI publisher "Publish What You Fund" has an activity with IATI ID: GB-COH-07676886-3
@andylolz andylolz added the feature Cool stuff I’d like this library to be able to do label Dec 5, 2018
@andylolz
Copy link
Member Author

andylolz commented Dec 5, 2018

This depends on #1, I guess.

@andylolz andylolz changed the title Given an IATI (activity) identifier, find the publisher Given an activity, find the publisher Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Cool stuff I’d like this library to be able to do
Projects
None yet
Development

No branches or pull requests

1 participant