GET /subscriptions
 GET /subscriptions.json
340696
def index
      @subscriptions = Subscription.all
  
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @subscriptions }
      end
    end
1037651
def retrieve(cls, *args, **kwargs):
        """"""
        return super(Subscription, cls).retrieve(*args, **kwargs)
1055126
def list_by_subscription_id(custom_headers:nil)
      response = list_by_subscription_id_async(custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
1009692
function(subscription_id) {
    var params = {
      client_id:     this._credentials.client_id,
      client_secret: this._credentials.client_secret
    };
    if (subscription_id==='users') {
      params.object = 'user';
    } else if (subscription_id==='all') {
      params.object = 'all';
    } else {
      params.id = subscription_id;
    }
    return params;
  }
831225
def get_subscriber(self, subscriber_id):
        
        route_values = {}
        if subscriber_id is not None:
            route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str')
        response = self._send(http_method='GET',
                              location_id='4d5caff1-25ba-430b-b808-7a1f352cc197',
                              version='5.0-preview.1',
                              route_values=route_values)
        return self._deserialize('NotificationSubscriber', response)
640987
def community_post_subscription_show(self, post_id, id, **kwargs):
        ""
        api_path = "/api/v2/community/posts/{post_id}/subscriptions/{id}.json"
        api_path = api_path.format(post_id=post_id, id=id)
        return self.call(api_path, **kwargs)
11256
def help_center_article_subscription_show(self, article_id, id, locale=None, **kwargs):
        ""
        api_path = "/api/v2/help_center/articles/{article_id}/subscriptions/{id}.json"
        api_path = api_path.format(article_id=article_id, id=id)
        if locale:
            api_opt_path = "/api/v2/help_center/{locale}/articles/{article_id}/subscriptions/{id}.json"
            api_path = api_opt_path.format(article_id=article_id, id=id, locale=locale)
        return self.call(api_path, **kwargs)
1250326
def get_subscription_labels(self, userPk):
        """"""
        r = self._request('subscriptions/' + str(userPk))
        if r:
            s = r.json()
            return s
        return []
305780
def get_subscription(self, subscription_id):
        
        return self.client._put(self.url + 'subscriptions/{}'.format(subscription_id), headers=self.get_headers())
328047
def getEmailReports(self):
        """"""

        reports = [PingdomEmailReport(self, x) for x in
                   self.request('GET',
                                'reports.email').json()['subscriptions']]

        return reports
772931
def organization_subscriptions(self, organization_id, **kwargs):
        ""
        api_path = "/api/v2/organizations/{organization_id}/subscriptions.json"
        api_path = api_path.format(organization_id=organization_id)
        return self.call(api_path, **kwargs)
945865
public function getRepositorySubscription(): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/subscription',
            $this->getActivity()->getOwner(), $this->getActivity()->getRepo()));
    }
1264455
def list_presubscriptions(self, **kwargs):
        
        api = self._get_api(mds.SubscriptionsApi)
        resp = api.get_pre_subscriptions(**kwargs)
        return [Presubscription(p) for p in resp]
504409
def subscriptions_path_for(target, params = {})
      options = params.dup
      options.delete(:devise_default_routes) ?
        send("#{routing_scope(options)}subscriptions_path", options) :
        send("#{routing_scope(options)}#{target.to_resource_name}_subscriptions_path", target, options)
    end
434744
def json(self, **kwargs):
        
        try:
            return super(ScraperResponse, self).json(**kwargs)
        except ValueError as ve:
            raise ParseException(ve)
884506
public Subscriptions getSubscriptions(final SubscriptionState state, final QueryParams params) {
        if (state != null) { params.put("state", state.getType()); }

        return doGET(Subscriptions.SUBSCRIPTIONS_RESOURCE,
                Subscriptions.class, params);
    }
735239
def subscription_get(subscription_id=None, **kwargs):
    '''
    

    '''
    result = {}

    if not subscription_id:
        subscription_id = kwargs.get('subscription_id')
    elif not kwargs.get('subscription_id'):
        kwargs['subscription_id'] = subscription_id

    subconn = __utils__['azurearm.get_client']('subscription', **kwargs)
    try:
        subscription = subconn.subscriptions.get(
            subscription_id=kwargs.get('subscription_id')
        )

        result = subscription.as_dict()
    except CloudError as exc:
        __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
        result = {'error': str(exc)}

    return result