Skip to content

donation api #16

Open
Open

Description

@schuyler1d

Based on https://roboticdogs.actionkit.com/docs/manual/api/rest/donationpush.html
make a file actionkit/api/donate.py (similar to action.py that extends base.ActionKitApi
https://github.com/MoveOnOrg/python-actionkit/blob/public-master/actionkit/api/action.py#L7)

make a method in that file that is basically:
def donate(self, user_id, donation_page_name, amount):
and sends the right post and gives the right details back (like success or if there was an error -- e.g. in charging)

(then you can use it similarly to e.g. eventroller project here:
https://github.com/MoveOnOrg/eventroller/blob/master/event_exim/connectors/actionkit_api.py#L9-L10
https://github.com/MoveOnOrg/eventroller/blob/master/event_exim/connectors/actionkit_api.py#L32-L34
https://github.com/MoveOnOrg/eventroller/blob/master/event_exim/connectors/actionkit_api.py#L151-L156
https://github.com/MoveOnOrg/eventroller/blob/master/event_exim/connectors/actionkit_api.py#L337

Activity

  1. removed their assignment
    on Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions