Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
doGetRequestRaw example
'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
)
;
}
$result
=
json_decode
(
$result
, true
)
;
return
new
MetaStruct
(
$result
[
'location'
]
,
$result
[
'size'
]
,
$result
[
'sha1'
]
,