Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
b87826cc
Commit
b87826cc
authored
May 11, 2022
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zendesk API Params Enhancement
parent
6c20b063
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
logic.php
logic/support/logic.php
+6
-5
No files found.
logic/support/logic.php
View file @
b87826cc
...
...
@@ -128,7 +128,7 @@ class LogicSupport extends SupportModelClass {
if
(
$ticketingConf
->
staging
)
$template
[
"body"
]
=
"[STAGING TICKET]
\n
{
$template
[
"body"
]
}
"
;
$params
=
[
$params
=
json_encode
(
[
"ticket"
=>
[
"subject"
=>
$template
[
"title"
],
"priority"
=>
"urgent"
,
...
...
@@ -142,7 +142,7 @@ class LogicSupport extends SupportModelClass {
"email"
=>
$this
->
getEmail
()
]
]
];
]
)
;
curl_setopt_array
(
$handle
,
[
CURLOPT_URL
=>
$ticketingConf
->
endpoint_url
,
...
...
@@ -151,7 +151,7 @@ class LogicSupport extends SupportModelClass {
CURLOPT_ENCODING
=>
"utf8"
,
CURLOPT_HTTP_VERSION
=>
CURL_HTTP_VERSION_1_1
,
CURLOPT_CUSTOMREQUEST
=>
$ticketingConf
->
request_method
,
CURLOPT_POSTFIELDS
=>
json_encode
(
$params
)
,
CURLOPT_POSTFIELDS
=>
$params
,
CURLOPT_HTTPHEADER
=>
[
"Content-type: application/json"
,
"Authorization: Basic
{
$hashed
}
"
...
...
@@ -167,8 +167,9 @@ class LogicSupport extends SupportModelClass {
$details
=
[
"response_code"
=>
$httpcode
,
"ticket_body"
=>
"<subject>
{
$template
[
"title"
]
}
</subject>
\n
"
.
"<content>
\n
{
$template
[
"body"
]
}
</content>"
,
"<subject>
{
$template
[
"title"
]
}
\n
</subject>
\n
"
.
"<content>
\n
{
$template
[
"body"
]
}
\n
</content>
\n
"
.
"<params>
\n
{
$params
}
\n
</params>"
,
"response_str"
=>
$output
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment