Skip to content

Instantly share code, notes, and snippets.

@maicher
Last active December 19, 2016 15:13
Show Gist options
  • Save maicher/7ff21373740b162b9bbcc11de950245a to your computer and use it in GitHub Desktop.
Save maicher/7ff21373740b162b9bbcc11de950245a to your computer and use it in GitHub Desktop.
Test
# Step 1. Obtain token
curl -X POST \
-F "client_id=b6394b15282889398719c67983594d20" \
-F "client_secret=4aee41059af4d350a6ead3a285f0c438de146857d4134b6e63d5b1291971b12f" \
-F "grant_type=client_credentials" \
-F "scope=write_partner_users" \
'https://berlin.staging.wimdu.com/api/v3/oauth/token'
# Step 2. Create user.
# fill out <token> (obtained in Step.1)
# fill out <partner_user_id> (can be a random alphanumeric character)
# fill out <email> (a random valid email)
curl -n -X POST https://berlin.staging.wimdu.com/api/v3/partners/kigo_integrations/users/<partner_user_id> \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"user": {
"email": <email>,
"firstname": "Johan",
"lastname": "Doe",
"phone": "5484452548",
"work_phone": "5484452548",
"about": "Hello, like traveling, boating and cooking.",
"birthday": "2014-05-17",
"locale": "en_US",
"tld": "de",
"location": "Berlin",
"timezone": "Berlin",
"paypal_email": "johan.doe@example.org",
"vat_id_number": "04329112233",
"vat_company_name": "John Doe Villa",
"vat_country_code_iso": "US",
"bank_account":
{ "payout_method": "SEPA", "payout_currency": "EUR", "country": "de", "owner": "Johan Doe", "number": "DE68210501700012345678", "iban": "DE68210501700012345678", "bank_name": "Deutsche Bank", "bank_swift_code": "DRESDEFF100" }
}
}'
# Step 3. Go to admina panel and check out created user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment