We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e10b2 commit e73582bCopy full SHA for e73582b
src/Mailchimp.php
@@ -273,12 +273,14 @@ public function verifiedDomains($domain_name = null)
273
*
274
* @param $client_id
275
* @param $redirect_uri
276
+ * @param $state
277
278
* @return string
279
*/
280
public static function getAuthUrl(
281
$client_id,
- $redirect_uri
282
+ $redirect_uri,
283
+ $state = null
284
) {
285
$encoded_uri = urlencode($redirect_uri);
286
@@ -287,6 +289,10 @@ public static function getAuthUrl(
287
289
$authUrl .= "&redirect_uri=" . $encoded_uri;
288
290
$authUrl .= "&response_type=code";
291
292
+ if ($state !== null) {
293
+ $authUrl .= "&state=" . $state;
294
+ }
295
+
296
return $authUrl;
297
}
298
0 commit comments