Constructs a TriggerContext

        :param sid: The unique string that identifies the resource

        :returns: twilio.rest.api.v2010.account.usage.trigger.TriggerContext
        :rtype: twilio.rest.api.v2010.account.usage.trigger.TriggerContext
960294
def get(self, sid):
        
        return TriggerContext(self._version, account_sid=self._solution['account_sid'], sid=sid, )
1244034
def get(self, sid):
        
        return ShortCodeContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
718218
def get(self, sid):
        
        return RecordingContext(self._version, account_sid=self._solution['account_sid'], sid=sid, )
235720
def get(self, sid):
        
        return ParticipantContext(self._version, room_sid=self._solution['room_sid'], sid=sid, )
895365
def get(self, sid):
        
        return SyncListContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
410726
def get_context():
    
    pid = os.getpid()
    if pid not in context:
        context[pid] = zmq.Context()
        logger.debug('renewed context for PID %d', pid)
    return context[pid]
1287123
def save_data(trigger_id, data):
    
    status = True
    # consumer - the service which uses the data
    default_provider.load_services()
    service = TriggerService.objects.get(id=trigger_id)

    service_consumer = default_provider.get_service(str(service.consumer.name.name))
    kwargs = {'user': service.user}

    if len(data) > 0:
        getattr(service_consumer, '__init__')(service.consumer.token, **kwargs)
        status = getattr(service_consumer, 'save_data')(service.id, **data)

    return status
986351
def get(self, sid):
        
        return QueueContext(self._version, account_sid=self._solution['account_sid'], sid=sid, )
1110231
def get(self, sid):
        
        return FunctionContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
50169
public function getContext($sid) {
        return new ParticipantContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['sessionSid'],
            $sid
        );
    }
1242287
def get(self, sid):
        
        return SyncStreamContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
434553
public function getContext($sid) {
        return new TranscriptionContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['recordingSid'],
            $sid
        );
    }
848699
def get(self, sid):
        
        return AddressContext(self._version, account_sid=self._solution['account_sid'], sid=sid, )
855030
def get(self, sid):
        
        return SyncMapContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
50009
public function getContext($sid) {
        return new SampleContext(
            $this->version,
            $this->solution['assistantSid'],
            $this->solution['taskSid'],
            $sid
        );
    }
608341
public function getContext($sid) {
        return new StepContext(
            $this->version,
            $this->solution['flowSid'],
            $this->solution['engagementSid'],
            $sid
        );
    }
946665
def get(self, sid):
        
        return ReservationContext(
            self._version,
            workspace_sid=self._solution['workspace_sid'],
            worker_sid=self._solution['worker_sid'],
            sid=sid,
        )