Passed
Push — master ( 641929...562012 )
by Alexey
06:04 queued 12s
created

PlayStoreUiRequest   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 182
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 6
eloc 90
c 2
b 1
f 0
dl 0
loc 182
ccs 35
cts 35
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getClusterPagesRequest() 0 22 1
A getSuggestRequest() 0 27 1
A getPermissionsRequest() 0 21 1
A getAppsRequest() 0 21 1
A getReviewsRequest() 0 28 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Copyright (c) Ne-Lexa
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 *
11
 * @see https://github.com/Ne-Lexa/google-play-scraper
12
 */
13
14
namespace Nelexa\GPlay\Scraper;
15
16
use GuzzleHttp\Psr7\Request;
17
use GuzzleHttp\Psr7\Utils;
18
use Nelexa\GPlay\Enum\SortEnum;
19
use Nelexa\GPlay\GPlayApps;
20
use Nelexa\GPlay\Model\AppId;
21
use Psr\Http\Message\RequestInterface;
22
23
/**
24
 * @internal
25
 */
26
class PlayStoreUiRequest
27
{
28
    public const LIMIT_REVIEW_ON_PAGE = 199;
29
30
    public const LIMIT_APPS_ON_PAGE = 100;
31
32
    private const RPC_ID_REVIEWS = 'UsvDTd';
33
34
    private const RPC_ID_APPS = 'qnKhOb';
35
36
    private const RPC_ID_PERMISSIONS = 'xdSrCf';
37
38
    private const RPC_ID_SUGGEST = 'IJ4APc';
39
40
    private const RPC_ID_PAGE = 'w3QCWb';
41
42
    /**
43
     * @param AppId       $requestApp
44
     * @param int         $count
45
     * @param SortEnum    $sort
46
     * @param string|null $token
47
     *
48
     * @return RequestInterface
49
     */
50 1
    public static function getReviewsRequest(
51
        AppId $requestApp,
52
        int $count,
53
        SortEnum $sort,
54
        ?string $token = null
55
    ): RequestInterface {
56 1
        $limit = min(self::LIMIT_REVIEW_ON_PAGE, max(1, $count));
57
        $queryParams = [
58
            'rpcids' => self::RPC_ID_REVIEWS,
59 1
            GPlayApps::REQ_PARAM_LOCALE => $requestApp->getLocale(),
60 1
            GPlayApps::REQ_PARAM_COUNTRY => $requestApp->getCountry(),
61
            'authuser' => null,
62
            'soc-app' => 121,
63
            'soc-platform' => 1,
64
            'soc-device' => 1,
65
        ];
66 1
        $url = GPlayApps::GOOGLE_PLAY_URL . '/_/PlayStoreUi/data/batchexecute?' . http_build_query($queryParams);
67
        $formParams = [
68 1
            'f.req' => '[[["' . self::RPC_ID_REVIEWS . '","[null,null,[2,' . $sort->value(
69 1
                ) . ',[' . $limit . ',null,' . ($token === null ? 'null' : '\\"' . $token . '\\"')
70 1
                . ']],[\\"' . $requestApp->getId() . '\\",7]]",null,"generic"]]]',
71
        ];
72
        $headers = [
73
            'Content-Type' => 'application/x-www-form-urlencoded;charset=utf-8',
74
        ];
75 1
        $body = Utils::streamFor(http_build_query($formParams));
76
77 1
        return new Request('POST', $url, $headers, $body);
78
    }
79
80
    /**
81
     * @param string $locale
82
     * @param string $country
83
     * @param int    $count
84
     * @param string $token
85
     *
86
     * @return RequestInterface
87
     */
88 18
    public static function getAppsRequest(string $locale, string $country, int $count, string $token): RequestInterface
89
    {
90 18
        $limit = min(self::LIMIT_APPS_ON_PAGE, max(1, $count));
91
        $queryParams = [
92
            'rpcids' => self::RPC_ID_APPS,
93
            GPlayApps::REQ_PARAM_LOCALE => $locale,
94
            GPlayApps::REQ_PARAM_COUNTRY => $country,
95
            'soc-app' => 121,
96
            'soc-platform' => 1,
97
            'soc-device' => 1,
98
        ];
99 18
        $url = GPlayApps::GOOGLE_PLAY_URL . '/_/PlayStoreUi/data/batchexecute?' . http_build_query($queryParams);
100
        $formParams = [
101 18
            'f.req' => '[[["' . self::RPC_ID_APPS . '","[[null,[[10,[10,' . $limit . ']],true,null,[1]],null,\\"' . $token . '\\"]]",null,"generic"]]]',
102
        ];
103
        $headers = [
104
            'Content-Type' => 'application/x-www-form-urlencoded;charset=utf-8',
105
        ];
106 18
        $body = Utils::streamFor(http_build_query($formParams));
107
108 18
        return new Request('POST', $url, $headers, $body);
109
    }
110
111
    /**
112
     * @param AppId $requestApp
113
     *
114
     * @throws \Exception
115
     *
116
     * @return RequestInterface
117
     */
118 1
    public static function getPermissionsRequest(AppId $requestApp): RequestInterface
119
    {
120
        $queryParams = [
121
            'rpcids' => self::RPC_ID_PERMISSIONS,
122 1
            GPlayApps::REQ_PARAM_LOCALE => $requestApp->getLocale(),
123 1
            GPlayApps::REQ_PARAM_COUNTRY => $requestApp->getCountry(),
124
            'soc-app' => 121,
125
            'soc-platform' => 1,
126
            'soc-device' => 1,
127
        ];
128 1
        $url = GPlayApps::GOOGLE_PLAY_URL . '/_/PlayStoreUi/data/batchexecute?' . http_build_query($queryParams);
129
        $formParams = [
130 1
            'f.req' => '[[["' . self::RPC_ID_PERMISSIONS . '","[[null,[\"'
131 1
                . $requestApp->getId() . '\",7],[]]]",null,"1"]]]',
132
        ];
133
        $headers = [
134
            'Content-Type' => 'application/x-www-form-urlencoded;charset=utf-8',
135
        ];
136 1
        $body = Utils::streamFor(http_build_query($formParams));
137
138 1
        return new Request('POST', $url, $headers, $body);
139
    }
140
141
    /**
142
     * @param string $query
143
     * @param string $locale
144
     * @param string $country
145
     *
146
     * @throws \Exception
147
     *
148
     * @return RequestInterface
149
     */
150 2
    public static function getSuggestRequest(
151
        string $query,
152
        string $locale = GPlayApps::DEFAULT_LOCALE,
153
        string $country = GPlayApps::DEFAULT_COUNTRY
154
    ): RequestInterface {
155
        $queryParams = [
156
            'rpcids' => self::RPC_ID_SUGGEST,
157
            GPlayApps::REQ_PARAM_LOCALE => $locale,
158
            GPlayApps::REQ_PARAM_COUNTRY => $country,
159
            'source-path' => '/store/apps',
160
            'authuser' => null,
161
            'soc-app' => 121,
162
            'soc-platform' => 1,
163
            'soc-device' => 1,
164
        ];
165 2
        $url = GPlayApps::GOOGLE_PLAY_URL . '/_/PlayStoreUi/data/batchexecute?' . http_build_query($queryParams);
166
        $formParams = [
167 2
            'f.req' => '[[["' . self::RPC_ID_SUGGEST . '","[[null,[\"'
168 2
                . str_replace('"', '\\\\\\"', $query)
169
                . '\"],[10],[2],4]]",null,"generic"]]]',
170
        ];
171
        $headers = [
172
            'Content-Type' => 'application/x-www-form-urlencoded;charset=utf-8',
173
        ];
174 2
        $body = Utils::streamFor(http_build_query($formParams));
175
176 2
        return new Request('POST', $url, $headers, $body);
177
    }
178
179
    /**
180
     * @param string $token
181
     * @param string $locale
182
     * @param string $country
183
     *
184
     * @return RequestInterface
185
     */
186 5
    public static function getClusterPagesRequest(string $token, string $locale, string $country): RequestInterface
187
    {
188
        $queryParams = [
189
            'rpcids' => self::RPC_ID_PAGE,
190
            GPlayApps::REQ_PARAM_LOCALE => $locale,
191
            GPlayApps::REQ_PARAM_COUNTRY => $country,
192
            'source-path' => '/store/apps',
193
            'authuser' => null,
194
            'soc-app' => 121,
195
            'soc-platform' => 1,
196
            'soc-device' => 1,
197
        ];
198 5
        $url = GPlayApps::GOOGLE_PLAY_URL . '/_/PlayStoreUi/data/batchexecute?' . http_build_query($queryParams);
199
        $formParams = [
200 5
            'f.req' => '[[["' . self::RPC_ID_PAGE . '","[[null,2,null,null,[[10,[10,50],null,\"' . $token . '\"],true,null,[96,27,8,57,30,110,11,16,1,9,31,12,104,55,56,145,51,34,10],[null,null,[[[true],null,[[[]]],null,null,null,null,[null,2],null,null,null,null,null,null,[1],null,null,null,null,null,null,null,[1]],[null,[[[]]]],[null,[[[]]],null,[true]],[null,[[[]]]],null,null,null,null,[[[[]]]],[[[[]]]]],[[[[7,1],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,31],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,104],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,9],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,8],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,27],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,12],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,65],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,110],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,88],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,11],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,56],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,55],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,96],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,10],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,122],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,72],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,71],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,64],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,113],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,139],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,150],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,169],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,165],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,151],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,163],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,32],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,16],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,108],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[7,100],[[1,73,96,103,97,58,50,92,52,112,69,19,31,101,123,74,49,80,20,10,14,79,43,42,139]]],[[9,1],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,31],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,104],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,9],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,8],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,27],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,12],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,65],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,110],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,88],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,11],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,56],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,55],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,96],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,10],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,122],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,72],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,71],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,64],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,113],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,139],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,150],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,169],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,165],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,151],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,163],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,32],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,16],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,108],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[9,100],[[1,7,9,24,12,31,5,15,27,8,13,10]]],[[17,1],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,31],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,104],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,9],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,8],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,27],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,12],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,65],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,110],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,88],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,11],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,56],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,55],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,96],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,10],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,122],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,72],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,71],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,64],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,113],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,139],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,150],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,169],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,165],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,151],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,163],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,32],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,16],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,108],[[1,7,9,25,13,31,5,27,8,14,10]]],[[17,100],[[1,7,9,25,13,31,5,27,8,14,10]]],[[10,1],[[1,7,6,9]]],[[10,31],[[1,7,6,9]]],[[10,104],[[1,7,6,9]]],[[10,9],[[1,7,6,9]]],[[10,8],[[1,7,6,9]]],[[10,27],[[1,7,6,9]]],[[10,12],[[1,7,6,9]]],[[10,65],[[1,7,6,9]]],[[10,110],[[1,7,6,9]]],[[10,88],[[1,7,6,9]]],[[10,11],[[1,7,6,9]]],[[10,56],[[1,7,6,9]]],[[10,55],[[1,7,6,9]]],[[10,96],[[1,7,6,9]]],[[10,10],[[1,7,6,9]]],[[10,122],[[1,7,6,9]]],[[10,72],[[1,7,6,9]]],[[10,71],[[1,7,6,9]]],[[10,64],[[1,7,6,9]]],[[10,113],[[1,7,6,9]]],[[10,139],[[1,7,6,9]]],[[10,150],[[1,7,6,9]]],[[10,169],[[1,7,6,9]]],[[10,165],[[1,7,6,9]]],[[10,151],[[1,7,6,9]]],[[10,163],[[1,7,6,9]]],[[10,32],[[1,7,6,9]]],[[10,16],[[1,7,6,9]]],[[10,108],[[1,7,6,9]]],[[10,100],[[1,7,6,9]]],[[1,1],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,31],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,104],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,9],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,8],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,27],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,12],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,65],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,110],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,88],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,11],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,56],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,55],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,96],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,10],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,122],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,72],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,71],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,64],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,113],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,139],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,150],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,169],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,165],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,151],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,163],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,32],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,16],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,108],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[1,100],[[1,5,14,38,19,29,7,34,4,12,11,6,30,43,40,42,16,10]]],[[4,1],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,31],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,104],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,9],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,8],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,27],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,12],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,65],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,110],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,88],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,11],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,56],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,55],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,96],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,10],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,122],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,72],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,71],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,64],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,113],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,139],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,150],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,169],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,165],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,151],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,163],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,32],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,16],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,108],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[4,100],[[1,3,5,4,7,6,11,19,21,17,15,12,16,20]]],[[3,1],[[1,5,14,4,10,17]]],[[3,31],[[1,5,14,4,10,17]]],[[3,104],[[1,5,14,4,10,17]]],[[3,9],[[1,5,14,4,10,17]]],[[3,8],[[1,5,14,4,10,17]]],[[3,27],[[1,5,14,4,10,17]]],[[3,12],[[1,5,14,4,10,17]]],[[3,65],[[1,5,14,4,10,17]]],[[3,110],[[1,5,14,4,10,17]]],[[3,88],[[1,5,14,4,10,17]]],[[3,11],[[1,5,14,4,10,17]]],[[3,56],[[1,5,14,4,10,17]]],[[3,55],[[1,5,14,4,10,17]]],[[3,96],[[1,5,14,4,10,17]]],[[3,10],[[1,5,14,4,10,17]]],[[3,122],[[1,5,14,4,10,17]]],[[3,72],[[1,5,14,4,10,17]]],[[3,71],[[1,5,14,4,10,17]]],[[3,64],[[1,5,14,4,10,17]]],[[3,113],[[1,5,14,4,10,17]]],[[3,139],[[1,5,14,4,10,17]]],[[3,150],[[1,5,14,4,10,17]]],[[3,169],[[1,5,14,4,10,17]]],[[3,165],[[1,5,14,4,10,17]]],[[3,151],[[1,5,14,4,10,17]]],[[3,163],[[1,5,14,4,10,17]]],[[3,32],[[1,5,14,4,10,17]]],[[3,16],[[1,5,14,4,10,17]]],[[3,108],[[1,5,14,4,10,17]]],[[3,100],[[1,5,14,4,10,17]]],[[2,1],[[1,5,7,18,4,13,16,12]]],[[2,31],[[1,5,7,18,4,13,16,12]]],[[2,104],[[1,5,7,18,4,13,16,12]]],[[2,9],[[1,5,7,18,4,13,16,12]]],[[2,8],[[1,5,7,18,4,13,16,12]]],[[2,27],[[1,5,7,18,4,13,16,12]]],[[2,12],[[1,5,7,18,4,13,16,12]]],[[2,65],[[1,5,7,18,4,13,16,12]]],[[2,110],[[1,5,7,18,4,13,16,12]]],[[2,88],[[1,5,7,18,4,13,16,12]]],[[2,11],[[1,5,7,18,4,13,16,12]]],[[2,56],[[1,5,7,18,4,13,16,12]]],[[2,55],[[1,5,7,18,4,13,16,12]]],[[2,96],[[1,5,7,18,4,13,16,12]]],[[2,10],[[1,5,7,18,4,13,16,12]]],[[2,122],[[1,5,7,18,4,13,16,12]]],[[2,72],[[1,5,7,18,4,13,16,12]]],[[2,71],[[1,5,7,18,4,13,16,12]]],[[2,64],[[1,5,7,18,4,13,16,12]]],[[2,113],[[1,5,7,18,4,13,16,12]]],[[2,139],[[1,5,7,18,4,13,16,12]]],[[2,150],[[1,5,7,18,4,13,16,12]]],[[2,169],[[1,5,7,18,4,13,16,12]]],[[2,165],[[1,5,7,18,4,13,16,12]]],[[2,151],[[1,5,7,18,4,13,16,12]]],[[2,163],[[1,5,7,18,4,13,16,12]]],[[2,32],[[1,5,7,18,4,13,16,12]]],[[2,16],[[1,5,7,18,4,13,16,12]]],[[2,108],[[1,5,7,18,4,13,16,12]]],[[2,100],[[1,5,7,18,4,13,16,12]]]]]]],null,2],[true]]",null,"generic"]]]',
201
        ];
202
        $headers = [
203
            'Content-Type' => 'application/x-www-form-urlencoded;charset=utf-8',
204
        ];
205 5
        $body = Utils::streamFor(http_build_query($formParams));
206
207 5
        return new Request('POST', $url, $headers, $body);
208
    }
209
}
210