最近搜索


没有最近搜索

Jay Silverio's Avatar

Jay Silverio

已加入2024年3月05日

·

最后活动2024年3月05日

关注

0

关注者

0

活动总数

2

投票

0

订阅

1

活动概览

的最新活动 Jay Silverio

Jay Silverio 创建了一个帖子,

帖子 Developer - Zendesk APIs

I started getting 401 error when I make a call to search the articles. I am using oauth token and sending that on the header 'Bearer'. This has worked previously and was able to get results and even tested paging and I see the results in the response. Now I get 401 unauthorized. I even tried regenerating the oauth token.

        $.ajax({
            url: "https://domain.zendesk.com/api/v2/help_center/articles/search.json?query=keyword",
            headers : {
                'Access-Control-Allow-Origin' : "*",
                'Authorization' : "Bearer " + oauth
            },
            data : {
                page : 1,
                per_page : 5,
                scropes: ["read"]
            },
            crossDomain: true,
            dataType: 'jsonp',
            cache: false,
            type: "GET",
            success: function(response) {
                
            },
            error: function(xhr) {
        
            
            }
        }); 

已于 2024年3月05日 发布 · Jay Silverio

0

关注者

2

投票

1

Comment