최근 검색


최근 검색 없음

Samer Kokeh's Avatar

Samer Kokeh

가입한 날짜: 2022년 4월 07일

·

마지막 활동: 2022년 5월 04일

팔로잉

0

팔로워

0

총 활동 수

27

투표 수

2

플랜 수

7

활동 개요

님의 최근 활동 Samer Kokeh

Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

FYI, i used in manifest.json

"parameters": [
        {
            "name": "token",
            "type": "oauth"
        }
And in my main.js
var settings = {
        url: crmurl,
        headers: {"authorization": "OAuth {{setting.token}}"},
        secure: true,
        type: 'GET',
        dataType: 'json'
        };

then when I reinstall my app on zendesk, it give me a sign that it's authorized. as bellow 
But whenever i try to run my app I got an error.
 

댓글 보기 · 2022년 5월 04일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Thank you for your post, I hope you keep following my post.

However, When i read your document here  I think there is some mistake in your code if you check it.

const client = ZAFClient.init()const settings = {  url: 'https://www.example.com/api/user',  headers: {authorization": "OAuth {{setting.access_token}}"},  secure: true,  type: 'GET',  dataType: 'json',  contentType: 'application/json'}

You can see headers parameters, it's not correct, I think Authorization it should be capital letter.
Can you tell me exactly please, what are the parameters i should use in my manifest?
and how to use my call in my main.js?

댓글 보기 · 2022년 5월 04일에 편집됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Thank you Taylor, I've solved the problem.
Mainly to test your OAuth settings, you have to install the app. because OAuth settings can't be test during the design. 
BTW, I used following parameters, it didn't work with me with type: oauth.

"parameters": [
        {
            "name": "token",
            "type": "text",
            "secure": true,
            "required": true
        }

댓글 보기 · 2022년 5월 04일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 게시물을 만듦

게시물 Developer - Zendesk Apps Framework (ZAF)

Hi, 

I was following this resource https://developer.zendesk.com/documentation/apps/app-developer-guide/using-the-apps-framework/

at the section "OAuth client redirect URL"
it's not really clear to me, do you mean to set this url https://zis.zendesk.com/api/services/zis/connections/oauth/callback

on the 3rd party app setting or in zendesk app code? please clarify.
Thank you in advance.

2022년 4월 27일에 게시됨 · Samer Kokeh

0

팔로워

2

투표 수

1

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Thank you for information Taylor, just I want to make sure if you put the call back url on azure active directory as  https://zis.zendesk.com/api/services/zis/connections/oauth/callback

because i always receive 422 error 
"Proxy error: {:code=>\"UnprocessableEntity\", :status=>\"422\", :title=>\"Unprocessable Entity\", :message=>\"Failed to get installation and oauth information for app.\"}"

I think i did everything well, it's really strange.

댓글 보기 · 2022년 4월 27일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Good luck..

댓글 보기 · 2022년 4월 26일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Hi,
I have the same problem, did you find a solution ?
Thank you,

Samer

댓글 보기 · 2022년 4월 26일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

FYI, I tried the same configuration on Postman and it's work very well, the only thing is missed when I compare my postman configurations is Scope, Scope value in postman is 

 
And i am not sure if the setting is correct because as you can see in my code i tried to write the value of access_token parameter which i fill it when i run "Zat server" but it's appear as is 
 console.log("Token: {{setting.token}}" ); ==Consol output=> "Token: {{setting.token}}" .
Regards, 
Samer

댓글 보기 · 2022년 4월 26일에 편집됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Here is also a screenshot of my console when i run the app.

댓글 보기 · 2022년 4월 25일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글


Samer Kokeh님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

Hi,

Please check the attachments of manifest.json, main.js and the error appears on chrome console.

 

댓글 보기 · 2022년 4월 25일에 게시됨 · Samer Kokeh

0

팔로워

0

투표 수

0

댓글