account_elsewhere

class gratipay.models.account_elsewhere.AccountElsewhere(*args, **kwargs)[source]

Participants can attach accounts on other platforms (Facebook, Twitter, etc.) to their Gratipay account.

classmethod from_id(id)[source]

Return an existing AccountElsewhere based on id.

classmethod from_user_id(platform, user_id)[source]

Return an existing AccountElsewhere based on platform and user_id.

classmethod from_user_name(platform, user_name)[source]

Return an existing AccountElsewhere based on platform and user_name.

classmethod upsert(i)[source]

Insert or update a user’s info.

opt_in(desired_username)[source]

Given a desired username, return a User object.

save_token(token)[source]

Saves the given access token in the database.