vue-zendesk
vue-zendesk copied to clipboard
Erro 400 compose/key
I got a 400 error on the get method on the URL https://ekr.zdassets.com/compose/key
My main.js:
import Zendesk from '@dansmaculotte/vue-zendesk'
Vue.use(Zendesk, {
key: 'my key',
disabled: true,
hideOnLoad: true,
settings: {
webWidget: {
color: {
theme: '#78a300'
}
}
}
});
My component:
<template>
xxx
</template>
<script>
export default {
name: "faq",
mounted() {
this.$zendesk.load('key');
},
methods: {
showCustmerService() {
this.$zendesk('webWidget', 'show');
this.$zendesk('webWidget', 'open');
this.$zendesk('webWidget:on', 'close', () => {
this.$zendesk('webWidget', 'hide');
});
},
},
};
</script>
In the network: Request URL: https://ekr.zdassets.com/compose/key Request Method: GET Status Code: 400
Did you found the solution for this issue??
Can you check the return of request "https://static.zdassets.com/ekr/snippet.js?key=" + actualZendeskKey
?
If your key is sent to Vue plugin, you don't have to pass it to this.$zendesk.load
function.
@rtouze thanks for replying. I figure out the key is different from the Account_Key. I'm able to integrate now
However, after I this.$zendesk.load and from the UI, I navigate to chat box, input name, email then message and click send, the messages don't go to my zendesk. Is there any other configuration need to be set to actually send message to zendesk??
The plugin only load the widget. Once it's shown, it's zendesk's responsibility.
Le 6 mars 2023 15:47:15 GMT+01:00, syqtr @.***> a écrit :
@rtouze thanks for replying. I figure out the key is different from the Account_Key. I'm able to integrate now
However, after I this.$zendesk.load and from the UI, I navigate to chat box, input name, email then message and click send, the messages don't go to my zendesk. Is there any other configuration need to be set to actually send message to zendesk??
-- Reply to this email directly or view it on GitHub: https://github.com/dansmaculotte/vue-zendesk/issues/54#issuecomment-1456274139 You are receiving this because you were mentioned.
Message ID: @.***> -- Romain TOUZÉ - https://rtodev.tech +33 7 81 13 85 58