Skip to content

Commit

Permalink
update gems
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel mawutor committed Mar 12, 2019
1 parent 0f27f2c commit 81c0f25
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Binary file modified pkg/synapseruby-1.0.3.gem
Binary file not shown.
Binary file added pkg/synapseruby-1.0.4.gem
Binary file not shown.
11 changes: 9 additions & 2 deletions samples.md
Expand Up @@ -75,6 +75,10 @@ client = Synapse::Client.new(args)
- Returns user instance

```bash
ip_address = "127.0.0"
fingerprint = "234092485wsf"
idemopotency_key = "222222"

payload = {
"logins": [
{
Expand All @@ -95,15 +99,18 @@ payload = {
}
}

user = client.create_user(payload: payload)
user = client.create_user(payload: payload, ip_address: ip_address, fingerprint: fingerprint, idemopotency_key: idemopotency_key)
```

##### Get User
- returns USER instance

```bash
user_id = "1232"
user = client.get_user(user_id: user_id,full_dehydrate: true)
fingerprint = "234092485wsf"
ip_address = "127.0.0"

user = client.get_user(user_id: user_id, ip_address: ip_address, fingerprint: fingerprint, full_dehydrate: true)
```

##### Create Subscription
Expand Down

0 comments on commit 81c0f25

Please sign in to comment.