Skip to content

Instantly share code, notes, and snippets.

@MrMooky
Created April 24, 2021 09:14
Show Gist options
  • Save MrMooky/07bb7bd6eafe978318301bd25aea9d30 to your computer and use it in GitHub Desktop.
Save MrMooky/07bb7bd6eafe978318301bd25aea9d30 to your computer and use it in GitHub Desktop.
$response = Http::withHeaders([
"X-Auth-Token" => config('services.getresponse.api_key')
])->post('https://api.getresponse.com/v3/contacts', [
"name" => $user->name,
"email" => $user->email,
"campaign" => [
"campaignId" => config('services.getresponse.list_token')
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment