Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
doAuthGetRequestRaw example
public
function
getMetaInformation
(
MetaRequest
$request
)
{
$params
=
[
'domain' =>
$request
->
getDomain
(
)
,
'technicalName' =>
$request
->
getTechnicalName
(
)
,
'shopwareVersion' =>
$request
->
getVersion
(
)
,
]
;
if
(
$request
->
getToken
(
)
)
{
$result
=
$this
->storeClient->
doAuthGetRequestRaw
(
$request
->
getToken
(
)
,
'/pluginFiles/' .
$request
->
getTechnicalName
(
)
. '/data',
$params
)
;
}
else
{
$result
=
$this
->storeClient->
doGetRequestRaw
(
'/pluginFiles/' .
$request
->
getTechnicalName
(
)
. '/data',
$params
)
;
}