def create_subscriber(self, customer_id, screen_name):
        data = '''
        <subscriber>
            <customer-id>%d</customer-id>
            <screen-name>%s</screen-name>
        </subscriber>
        ''' % (customer_id, screen_name)
        
        self.set_url('subscribers.xml')
        self.query(data)
        
        # Parse
        result = []
        tree = fromstring(self.get_response())
        for plan in tree.getiterator('subscriber'):
            data = {
                'customer_id': int(plan.findtext('customer-id')),
                'first_name': plan.findtext('billing-first-name'),
                'last_name': plan.findtext('billing-last-name'),
                'active': True if plan.findtext('active') == 'true' else False,
                'gift': True if plan.findtext('on-gift') == 'true' else False,
                'trial_active': \
                    True if plan.findtext('on-trial') == 'true' else False,
                'trial_elegible': \
                    True if plan.findtext('eligible-for-free-trial') == 'true' \
                    else False,
                'lifetime': \
                    True if plan.findtext('lifetime-subscription') == 'true' \
                    else False,
                'recurring': \
                    True if plan.findtext('recurring') == 'true' \
                    else False,
                'card_expires_before_next_auto_renew': \
                    True if plan.findtext('card-expires-before-next-auto-renew') == 'true' \
                    else False,
                'token': plan.findtext('token'),
                'name': plan.findtext('subscription-plan-name'),
                'feature_level': plan.findtext('feature-level'),
                'created_at': str_to_datetime(plan.findtext('created-at')),
                'date_changed': str_to_datetime(plan.findtext('updated-at')),
                'active_until': str_to_datetime(plan.findtext('active-until')) if plan.findtext('active-until') else None,
            }
            
            result.append(data)
        return result[0]
Creates a subscription
dataset/ETHPy150Open shelfworthy/python-spreedly/api.py/Client.create_subscriber