https://developer.zendesk.com/rest_api/docs/help_center/subscriptions#show-article-subscription
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)
1113483
def update_subscription(netid, action, subscription_code, data_field=None):
    
    url = '{0}/subscription.json'.format(url_version())
    action_list = []

    if isinstance(subscription_code, list):
        for code in subscription_code:
            action_list.append(_set_action(
                netid, action, code, data_field))
    else:
        action_list.append(_set_action(
            netid, action, subscription_code, data_field))

    body = {'actionList': action_list}
    response = post_resource(url, json.dumps(body))
    return _json_to_subscription_post_response(response)
861233
def comments(self, article):
        
        return self._query_zendesk(self.endpoint.comments, object_type='comment', id=article)
13575
def subscription(self):
        
        url = self._build_url('subscription', base_url=self._api)
        json = self._json(self._get(url), 200)
        return Subscription(json, self) if json else None
1259342
def list_articles(self, project, articleset, page=1, **filters):
        """"""
        url = URL.article.format(**locals())
        return self.get_pages(url, page=page, **filters)
944714
def get_all_subscriptions(self, next_token=None):
        
        params = {'ContentType' : 'JSON'}
        if next_token:
            params['NextToken'] = next_token
        response = self.make_request('ListSubscriptions', params, '/', 'GET')
        body = response.read()
        if response.status == 200:
            return json.loads(body)
        else:
            boto.log.error('%s %s' % (response.status, response.reason))
            boto.log.error('%s' % body)
            raise self.ResponseError(response.status, response.reason, body)
79998
def organization_membership_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/organization_memberships/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
1144035
def get_subscriptions(self, fetch=False):
        """"""
        return Subscriptions(
            self.resource.subscriptions, self.client, populate=fetch)
504569
def group_membership_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/group_memberships/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
1251818
def count_subscriptions(self, params={}):
        
        url = self.SUBSCRIPTIONS_COUNT_URL + '?'

        for key, value in params.items():
            if key is 'ids':
                value = ",".join(value)

            url += '&%s=%s' % (key, value)

        connection = Connection(self.token)
        connection.set_url(self.production, url)

        return connection.get_request()
715580
function editArticleInPart(part, level, newArticle) {
    var articles = part.getArticles();
    articles = editArticleInList(articles, level, newArticle);

    return part.set('articles', articles);
}
720381
function walkArticles(articles, fn) {
    return Promise.forEach(articles, function(article) {
        return Promise(fn(article))
        .then(function() {
            return walkArticles(article.getArticles(), fn);
        });
    });
}
428725
def subscription_path(cls, project, incident, subscription):
        """"""
        return google.api_core.path_template.expand(
            "projects/{project}/incidents/{incident}/subscriptions/{subscription}",
            project=project,
            incident=incident,
            subscription=subscription,
        )
1358369
def subscribe_get(self, nick, article_code):
        ''''''
        request = TOPRequest('taobao.vas.subscribe.get')
        request['nick'] = nick
        request['article_code'] = article_code
        self.create(self.execute(request), fields=['article_user_subscribes',], models={'article_user_subscribes':ArticleUserSubscribe})
        return self.article_user_subscribes
850261
def dynamic_content_item_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/dynamic_content/items/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
1264981
def search_subscriptions(self, **kwargs):
        
        params = [(key, kwargs[key]) for key in sorted(kwargs.keys())]
        url = "/notification/v1/subscription?{}".format(
            urlencode(params, doseq=True))

        response = NWS_DAO().getURL(url, self._read_headers)

        if response.status != 200:
            raise DataFailureException(url, response.status, response.data)

        data = json.loads(response.data)
        subscriptions = []
        for datum in data.get("Subscriptions", []):
            subscriptions.append(self._subscription_from_json(datum))
        return subscriptions
21274
def community_topic_subscription_show(self, topic_id, id, **kwargs):
        ""
        api_path = "/api/v2/community/topics/{topic_id}/subscriptions/{id}.json"
        api_path = api_path.format(topic_id=topic_id, id=id)
        return self.call(api_path, **kwargs)