wix-hive-ruby 0.9.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +38 -11
- data/e2e/activities_api_spec.rb +97 -3
- data/e2e/contacts_api_spec.rb +74 -28
- data/e2e/e2e_helper.rb +7 -3
- data/e2e/redirects_api_spec.rb +7 -0
- data/e2e/sites_api_spec.rb +11 -0
- data/lib/hive/activities/contact/contact_create_activity.rb +1 -11
- data/lib/hive/activities/contact/contact_form_activity.rb +2 -2
- data/lib/hive/activities/contact/subscription_form_activity.rb +38 -0
- data/lib/hive/activities/conversion/conversion_complete_activity.rb +1 -1
- data/lib/hive/activities/e_commerce/cart_add_activity.rb +55 -0
- data/lib/hive/activities/e_commerce/cart_checkout_activity.rb +18 -0
- data/lib/hive/activities/e_commerce/cart_remove_activity.rb +22 -0
- data/lib/hive/activities/e_commerce/purchase_activity.rb +17 -1
- data/lib/hive/activities/factory.rb +11 -21
- data/lib/hive/activities/hotels/hotels_cancel_activity.rb +1 -1
- data/lib/hive/activities/hotels/hotels_confirmation_activity.rb +1 -1
- data/lib/hive/activities/hotels/hotels_purchase_activity.rb +1 -1
- data/lib/hive/activities/hotels/hotels_purchase_failed_activity.rb +1 -1
- data/lib/hive/activities/messaging/send_activity.rb +1 -1
- data/lib/hive/activities/music/album_fan_activity.rb +1 -1
- data/lib/hive/activities/music/album_played_activity.rb +1 -1
- data/lib/hive/activities/music/album_share_activity.rb +2 -2
- data/lib/hive/activities/music/track_lyrics_activity.rb +1 -1
- data/lib/hive/activities/music/track_play_activity.rb +1 -1
- data/lib/hive/activities/music/track_played_activity.rb +1 -1
- data/lib/hive/activities/music/track_share_activity.rb +2 -2
- data/lib/hive/activities/music/track_skipped_activity.rb +1 -1
- data/lib/hive/activities/scheduler/scheduler_appointment_activity.rb +12 -1
- data/lib/hive/activities/shipping/shipping_delivered_activity.rb +34 -0
- data/lib/hive/activities/shipping/shipping_shipped_activity.rb +109 -0
- data/lib/hive/activities/shipping/shipping_status_change_activity.rb +51 -0
- data/lib/hive/activities/shipping/shipping_status_changed_activity.rb +51 -0
- data/lib/hive/redirect.rb +19 -0
- data/lib/hive/rest/api.rb +4 -0
- data/lib/hive/rest/contacts.rb +2 -4
- data/lib/hive/rest/redirects.rb +13 -0
- data/lib/hive/rest/sites.rb +17 -0
- data/lib/hive/site.rb +33 -0
- data/lib/hive/version.rb +3 -3
- data/spec/hive/activities/contact/subscription_form_activity_spec.rb +15 -0
- data/spec/hive/activities/e_commerce/purchase_activity_spec.rb +4 -0
- data/spec/hive/activities/factory_spec.rb +16 -0
- data/spec/hive/activities/shipping/shipping_delivered_acitivty_spec.rb +10 -0
- data/spec/hive/activities/shipping/shipping_shipped_acitivty_spec.rb +21 -0
- data/spec/hive/activities/shipping/shipping_status_changed_acitivty_spec.rb +10 -0
- data/spec/hive/rest/contacts_spec.rb +10 -9
- data/spec/hive/rest/redirects_spec.rb +12 -0
- data/spec/hive/rest/sites_spec.rb +17 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcaac76a82c3515274db30612aef088800c4e1ea
|
4
|
+
data.tar.gz: 7b877ce543e8a2c5b83d012b98f30d61c2bfef9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f09738bb2d9404c63299530dc8a4c6d2f2799decd12a220e58171957da5e0d0d80a54958063a38bd254e241ea242efaaefa517201898de2d5ed56889da8d407
|
7
|
+
data.tar.gz: 2da22c5af6291f5076d836297c82c070230a4b1bd2744ce600829fa7111b1dfbfe3a922bb9a429c2631a17823be6fe5a012919a3c006d1023a18df00462857d1
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -54,13 +54,18 @@ A Ruby interface to the Wix Hive API.
|
|
54
54
|
* **[Insights API](#insights-api)**
|
55
55
|
* **[client.activities_summary](#clientactivities_summary)**
|
56
56
|
* **[client.contact_activities_summary](#clientcontact_activities_summary)**
|
57
|
+
* **[Sites API](#sites-api)**
|
58
|
+
* **[client.sites_site](#clientsites_site)**
|
59
|
+
* **[client.sites_site_pages](#clientsites_site_pages)**
|
60
|
+
* **[Redirects API](#insights-api)**
|
61
|
+
* **[client.redirects](#clientredirects)**
|
57
62
|
5. **[Contributing](#contributing)**
|
58
63
|
* **[Submitting an Issue](#submitting-an-issue)**
|
59
64
|
* **[Submitting a Pull Request](#submitting-a-pull-request)**
|
60
65
|
|
61
66
|
## Prerequisites
|
62
|
-
- **Read about** [developing a third party app for the Wix platform](http://dev.wix.com/docs/
|
63
|
-
- **Register your app** [here](http://dev.wix.com/docs/
|
67
|
+
- **Read about** [developing a third party app for the Wix platform](http://dev.wix.com/docs/getting-started).
|
68
|
+
- **Register your app** [here](http://dev.wix.com/docs/publish/registration) to **obtain** your **APP_KEY** and **APP_SECRET**
|
64
69
|
|
65
70
|
## Installation
|
66
71
|
|
@@ -143,8 +148,8 @@ Hive::Client.new do |config|
|
|
143
148
|
end
|
144
149
|
```
|
145
150
|
|
146
|
-
1. The `config.secret_key` and `config.app_id` are obtained by registering an app as it is outlined [here](http://dev.wix.com/docs/
|
147
|
-
2. The `config.instance_id` is obtained by decoding the signed app instance. Learn more about this [here](http://dev.wix.com/docs/
|
151
|
+
1. The `config.secret_key` and `config.app_id` are obtained by registering an app as it is outlined [here](http://dev.wix.com/docs/publish/registration)
|
152
|
+
2. The `config.instance_id` is obtained by decoding the signed app instance. Learn more about this [here](http://dev.wix.com/docs/infrastructure/app-instance#overview)
|
148
153
|
* Note: The Hive client has a utility method that parses the instance data. Example usage:
|
149
154
|
``` ruby
|
150
155
|
wixInstance = Hive::Client.parse_instance_data(INSTANCE, SECRET-KEY)
|
@@ -349,10 +354,11 @@ contact = Hive::Contact.new
|
|
349
354
|
```
|
350
355
|
|
351
356
|
#### client.contact
|
357
|
+
Get a Contact by ID
|
352
358
|
|
353
359
|
**Example:**
|
354
360
|
``` ruby
|
355
|
-
client.contact(CONTACT_ID)
|
361
|
+
contact = client.contact(CONTACT_ID)
|
356
362
|
```
|
357
363
|
|
358
364
|
#### client.update_contact (PENDING)
|
@@ -563,11 +569,6 @@ client.contact_activities(CONTACT_ID)
|
|
563
569
|
``` ruby
|
564
570
|
client.contacts
|
565
571
|
client.contacts( pageSize: 50 )
|
566
|
-
client.contacts( tag: 'contacts_server/new' )
|
567
|
-
client.contacts( email: 'alex@example.com' )
|
568
|
-
client.contacts( phone: '123456789' )
|
569
|
-
client.contacts( firstName: 'E2E' )
|
570
|
-
client.contacts( lastName:'Cool' )
|
571
572
|
```
|
572
573
|
|
573
574
|
#### client.upsert_contact
|
@@ -626,7 +627,33 @@ client.upsert_contact( phone: '123456789', email: 'alex@example.com' )
|
|
626
627
|
**Example:**
|
627
628
|
``` ruby
|
628
629
|
client.contact_activities_summary(CONTACT_ID)
|
630
|
+
```
|
631
|
+
|
632
|
+
### Sites API
|
633
|
+
|
634
|
+
#### client.sites_site
|
635
|
+
|
636
|
+
**Example:**
|
637
|
+
``` ruby
|
638
|
+
client.sites_site
|
629
639
|
```
|
640
|
+
|
641
|
+
#### client.sites_site_pages
|
642
|
+
|
643
|
+
**Example:**
|
644
|
+
``` ruby
|
645
|
+
client.sites_site_pages
|
646
|
+
```
|
647
|
+
|
648
|
+
### Redirects API
|
649
|
+
|
650
|
+
#### client.redirects
|
651
|
+
|
652
|
+
**Example:**
|
653
|
+
``` ruby
|
654
|
+
client.redirects
|
655
|
+
```
|
656
|
+
|
630
657
|
## Contributing
|
631
658
|
|
632
659
|
**Everyone** is encouraged to help **improve** this gem. Some of the ways you can contribute include:
|
@@ -639,7 +666,7 @@ client.upsert_contact( phone: '123456789', email: 'alex@example.com' )
|
|
639
666
|
6. Write code (**no patch is too small**: fix typos, clean up inconsistent whitespace).
|
640
667
|
7. Refactor code.
|
641
668
|
8. Fix [issues](https://github.com/wix/wix-hive-ruby/issues).
|
642
|
-
9.
|
669
|
+
9. Submit an Issue
|
643
670
|
|
644
671
|
### Submitting an Issue
|
645
672
|
|
data/e2e/activities_api_spec.rb
CHANGED
@@ -62,20 +62,44 @@ describe 'Activities API' do
|
|
62
62
|
context 'create activities' do
|
63
63
|
it 'CONTACT_CONTACT_FORM' do
|
64
64
|
|
65
|
-
|
66
|
-
|
65
|
+
contact_form = FACTORY::CONTACT_CONTACT_FORM.klass.new
|
66
|
+
contact_form.add_field(name: 'name', value: 'value')
|
67
67
|
|
68
68
|
activity = Hive::Activity.new(
|
69
69
|
type: FACTORY::CONTACT_CONTACT_FORM.type,
|
70
70
|
locationUrl: 'http://www.wix.com',
|
71
71
|
details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
|
72
|
-
info:
|
72
|
+
info: contact_form)
|
73
73
|
|
74
74
|
new_activity_result = client.new_activity(session_id, activity)
|
75
75
|
|
76
76
|
expect(new_activity_result.activityId).to be_truthy
|
77
77
|
end
|
78
78
|
|
79
|
+
it 'CONTACT_SUBSCRIPTION_FORM' do
|
80
|
+
|
81
|
+
email = 'karen@meep.com'
|
82
|
+
phone = '+1-555-555-555'
|
83
|
+
name = {prefix: 'sir', first: 'mix', middle: 'a lot', last: 'the', suffix: 'III'}
|
84
|
+
|
85
|
+
sub_form = FACTORY::CONTACT_SUBSCRIPTION_FORM.klass.new(email: email,
|
86
|
+
phone: phone,
|
87
|
+
name: name)
|
88
|
+
|
89
|
+
sub_form.add_field(name: 'name', value: 'value')
|
90
|
+
activity = Hive::Activity.new(
|
91
|
+
type: FACTORY::CONTACT_SUBSCRIPTION_FORM.type,
|
92
|
+
locationUrl: 'http://www.wix.com',
|
93
|
+
details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
|
94
|
+
info: sub_form
|
95
|
+
)
|
96
|
+
|
97
|
+
|
98
|
+
new_activity_result = client.new_activity(session_id, activity)
|
99
|
+
|
100
|
+
expect(new_activity_result.activityId).to be_truthy
|
101
|
+
end
|
102
|
+
|
79
103
|
it 'CONVERSION_COMPLETE' do
|
80
104
|
activity = Hive::Activity.new(
|
81
105
|
type: FACTORY::CONVERSION_COMPLETE.type,
|
@@ -356,5 +380,75 @@ describe 'Activities API' do
|
|
356
380
|
|
357
381
|
expect(new_activity_result.activityId).to be_truthy
|
358
382
|
end
|
383
|
+
|
384
|
+
it 'SHIPPING_DELIVERED' do
|
385
|
+
item = {id: 1, sku: 'sky', title: 'title', quantity: 1, price: '1', formattedPrice: '1.1', currency: 'EUR', productLink: 'link'}
|
386
|
+
|
387
|
+
delivered = FACTORY::SHIPPING_DELIVERED.klass.new(orderId: '11111',
|
388
|
+
items: [item],
|
389
|
+
shippingDetails: {tracking: '123456'},
|
390
|
+
note: 'Note')
|
391
|
+
|
392
|
+
activity = Hive::Activity.new(
|
393
|
+
type: FACTORY::SHIPPING_DELIVERED.type,
|
394
|
+
locationUrl: 'http://www.wix.com',
|
395
|
+
details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
|
396
|
+
info: delivered)
|
397
|
+
|
398
|
+
new_activity_result = client.new_activity(session_id, activity)
|
399
|
+
|
400
|
+
expect(new_activity_result.activityId).to be_truthy
|
401
|
+
end
|
402
|
+
|
403
|
+
it 'SHIPPING_SHIPPED' do
|
404
|
+
shipping_address = {firstName: 'Wix' , lastName: 'Cool', email: 'wix@example.com', phone: '12345566', country: 'Macedonia', countryCode: 'MK', region: 'Bitola', regionCode: '7000', city: 'Bitola', address1: 'Marshal Tito', address2: 'Marshal Tito', zip: '7000', company: 'Wix.com'}
|
405
|
+
day_ago = (Time.now - (60 * 60 * 24)).iso8601(3)
|
406
|
+
delivery_estimate = { start: day_ago, end: Time.now.iso8601(3) }
|
407
|
+
|
408
|
+
shipping_details = {method: 'USPS', tracking: '123456', deliveryEstimate: delivery_estimate}
|
409
|
+
item = {id: 1, sku: 'sky', title: 'title', quantity: 1, price: '1', formattedPrice: '1.1', currency: 'EUR', productLink: 'link'}
|
410
|
+
|
411
|
+
delivered = FACTORY::SHIPPING_SHIPPED.klass.new(orderId: '11111',
|
412
|
+
items: [item],
|
413
|
+
shippingDetails: shipping_details,
|
414
|
+
shippingAddress: shipping_address,
|
415
|
+
note: 'Note')
|
416
|
+
|
417
|
+
activity = Hive::Activity.new(
|
418
|
+
type: FACTORY::SHIPPING_SHIPPED.type,
|
419
|
+
locationUrl: 'http://www.wix.com',
|
420
|
+
details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
|
421
|
+
info: delivered)
|
422
|
+
|
423
|
+
new_activity_result = client.new_activity(session_id, activity)
|
424
|
+
|
425
|
+
expect(new_activity_result.activityId).to be_truthy
|
426
|
+
end
|
427
|
+
|
428
|
+
it 'SHIPPING_STATUS_CHANGED' do
|
429
|
+
shipping_address = {firstName: 'Wix' , lastName: 'Cool', email: 'wix@example.com', phone: '12345566', country: 'Macedonia', countryCode: 'MK', region: 'Bitola', regionCode: '7000', city: 'Bitola', address1: 'Marshal Tito', address2: 'Marshal Tito', zip: '7000', company: 'Wix.com'}
|
430
|
+
day_ago = (Time.now - (60 * 60 * 24)).iso8601(3)
|
431
|
+
delivery_estimate = { start: day_ago, end: Time.now.iso8601(3) }
|
432
|
+
|
433
|
+
shipping_details = {method: 'USPS', tracking: '123456', deliveryEstimate: delivery_estimate}
|
434
|
+
item = {id: 1, sku: 'sky', title: 'title', quantity: 1, price: '1', formattedPrice: '1.1', currency: 'EUR', productLink: 'link'}
|
435
|
+
|
436
|
+
delivered = FACTORY::SHIPPING_STATUS_CHANGED.klass.new(orderId: '11111',
|
437
|
+
status: 'AWAITING_FULFILMENT',
|
438
|
+
items: [item],
|
439
|
+
shippingDetails: shipping_details,
|
440
|
+
shippingAddress: shipping_address,
|
441
|
+
note: 'Note')
|
442
|
+
|
443
|
+
activity = Hive::Activity.new(
|
444
|
+
type: FACTORY::SHIPPING_STATUS_CHANGED.type,
|
445
|
+
locationUrl: 'http://www.wix.com',
|
446
|
+
details: {summary: 'test', additionalInfoUrl: 'http://www.wix.com'},
|
447
|
+
info: delivered)
|
448
|
+
|
449
|
+
new_activity_result = client.new_activity(session_id, activity)
|
450
|
+
|
451
|
+
expect(new_activity_result.activityId).to be_truthy
|
452
|
+
end
|
359
453
|
end
|
360
454
|
end
|
data/e2e/contacts_api_spec.rb
CHANGED
@@ -53,29 +53,10 @@ describe 'Contacts API' do
|
|
53
53
|
expect(client.contacts( pageSize: 50 ).results.size).to eq 50
|
54
54
|
end
|
55
55
|
|
56
|
-
it 'should be able to query by tag' do
|
57
|
-
expect(client.contacts( tag: 'contacts_server/new' ).results.size).to be > 0
|
58
|
-
end
|
59
|
-
|
60
|
-
it 'should be able to query by email' do
|
61
|
-
expect(client.contacts( email: 'alext@wix.com' ).results.size).to be > 0
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'should be able to query by phone' do
|
65
|
-
expect(client.contacts( phone: '123456789' ).results.size).to be > 0
|
66
|
-
end
|
67
|
-
|
68
|
-
it 'should be able to query by firstName' do
|
69
|
-
expect(client.contacts( firstName: 'E2E' ).results.size).to be > 0
|
70
|
-
end
|
71
|
-
|
72
|
-
it 'should be able to query by lastName' do
|
73
|
-
expect(client.contacts( lastName:'Cool' ).results.size).to be > 0
|
74
|
-
end
|
75
56
|
end
|
76
57
|
|
77
58
|
it '.update_contact' do
|
78
|
-
pending('
|
59
|
+
pending('HAPI-3')
|
79
60
|
contact = Hive::Contact.new
|
80
61
|
contact.name.first = 'E2E'
|
81
62
|
contact.name.last = 'Cool'
|
@@ -105,20 +86,85 @@ describe 'Contacts API' do
|
|
105
86
|
end
|
106
87
|
|
107
88
|
context '.upsert_contact' do
|
108
|
-
it 'should
|
109
|
-
|
89
|
+
it 'should return an existing Contact given its phone' do
|
90
|
+
contact = create_base_contact_and_return
|
91
|
+
|
92
|
+
phone = rand(10**10)
|
93
|
+
updated_phone = Hive::Phone.new
|
94
|
+
updated_phone.tag = 'test'
|
95
|
+
updated_phone.phone = phone
|
96
|
+
|
97
|
+
client.update_contact_phone(contact.id, contact.phones.first.id, updated_phone, contact.modifiedAt)
|
98
|
+
|
99
|
+
upsert_result = client.upsert_contact(phone: phone)
|
100
|
+
|
101
|
+
expect(upsert_result).to include :contactId
|
102
|
+
expect(upsert_result.contactId).to eq contact.id
|
110
103
|
end
|
111
104
|
|
112
|
-
it 'should
|
113
|
-
|
105
|
+
it 'should return an existing Contact given its email' do
|
106
|
+
contact = create_base_contact_and_return
|
107
|
+
|
108
|
+
email = rand(36**10).to_s(36)
|
109
|
+
updated_email = Hive::Email.new
|
110
|
+
updated_email.tag = 'work'
|
111
|
+
updated_email.email = email
|
112
|
+
updated_email.emailStatus = 'optOut'
|
113
|
+
|
114
|
+
client.update_contact_email(contact.id, contact.emails.first.id, updated_email, contact.modifiedAt)
|
115
|
+
|
116
|
+
upsert_result = client.upsert_contact(email: email)
|
117
|
+
|
118
|
+
expect(upsert_result).to include :contactId
|
119
|
+
expect(upsert_result.contactId).to eq contact.id
|
114
120
|
end
|
115
121
|
|
116
|
-
it 'should
|
117
|
-
|
122
|
+
it 'should return the same Contact every time given same phone and userSessionToken' do
|
123
|
+
|
124
|
+
contact_phone_for_session = USER_SESSION_PHONE
|
125
|
+
token = USER_SESSION_TOKEN
|
126
|
+
upsert1_result = client.upsert_contact(phone: contact_phone_for_session, userSessionToken: token)
|
127
|
+
expect(upsert1_result).to include :contactId
|
128
|
+
|
129
|
+
upsert2_result = client.upsert_contact(phone: contact_phone_for_session, userSessionToken: token)
|
130
|
+
expect(upsert2_result).to include :contactId
|
131
|
+
expect(upsert2_result.contact_id).to eq upsert1_result.contact_id
|
132
|
+
end
|
133
|
+
|
134
|
+
it 'should return the same Contact every time given same email and userSessionToken' do
|
135
|
+
|
136
|
+
contact_email_for_session = USER_SESSION_EMAIL
|
137
|
+
token = USER_SESSION_TOKEN
|
138
|
+
upsert1_result = client.upsert_contact(email: contact_email_for_session, userSessionToken: token)
|
139
|
+
expect(upsert1_result).to include :contactId
|
140
|
+
|
141
|
+
upsert2_result = client.upsert_contact(email: contact_email_for_session, userSessionToken: token)
|
142
|
+
expect(upsert2_result).to include :contactId
|
143
|
+
expect(upsert2_result.contact_id).to eq upsert1_result.contact_id
|
118
144
|
end
|
119
145
|
|
120
|
-
it 'should return
|
121
|
-
|
146
|
+
it 'should return an existing Contact given its email and phone' do
|
147
|
+
contact = create_base_contact_and_return
|
148
|
+
|
149
|
+
phone = rand(10**10)
|
150
|
+
updated_phone = Hive::Phone.new
|
151
|
+
updated_phone.tag = 'test'
|
152
|
+
updated_phone.phone = phone
|
153
|
+
|
154
|
+
client.update_contact_phone(contact.id, contact.phones.first.id, updated_phone, contact.modifiedAt)
|
155
|
+
|
156
|
+
email = rand(36**10).to_s(36)
|
157
|
+
updated_email = Hive::Email.new
|
158
|
+
updated_email.tag = 'work'
|
159
|
+
updated_email.email = email
|
160
|
+
updated_email.emailStatus = 'optOut'
|
161
|
+
|
162
|
+
client.update_contact_email(contact.id, contact.emails.first.id, updated_email, contact.modifiedAt)
|
163
|
+
|
164
|
+
upsert_result = client.upsert_contact(phone: phone, email: email)
|
165
|
+
|
166
|
+
expect(upsert_result).to include :contactId
|
167
|
+
expect(upsert_result.contactId).to eq contact.id
|
122
168
|
end
|
123
169
|
end
|
124
170
|
|
data/e2e/e2e_helper.rb
CHANGED
@@ -3,6 +3,9 @@ require 'time'
|
|
3
3
|
require 'vcr'
|
4
4
|
|
5
5
|
RECORD_MODE = ENV['ACCEPTANCE'] ? :all : :new_episodes
|
6
|
+
USER_SESSION_EMAIL = 'USER_SESSION_EMAIL'
|
7
|
+
USER_SESSION_PHONE = 'USER_SESSION_PHONE'
|
8
|
+
USER_SESSION_TOKEN = 'USER_SESSION_TOKEN'
|
6
9
|
|
7
10
|
VCR.configure do |c|
|
8
11
|
c.cassette_library_dir = 'e2e/fixtures/vcr_cassettes'
|
@@ -24,8 +27,9 @@ end
|
|
24
27
|
|
25
28
|
def client
|
26
29
|
Hive::Client.new do |config|
|
27
|
-
config.secret_key = '
|
28
|
-
config.app_id = '
|
29
|
-
config.instance_id = '
|
30
|
+
config.secret_key = 'ffedea93-cd67-44d9-9784-f1ca39a001e9'
|
31
|
+
config.app_id = '13950910-451e-3d31-14ef-9e2901a24f8a'
|
32
|
+
config.instance_id = '13950958-34f4-65d3-1c4c-08cdf91b45a2'
|
33
|
+
#config.api_base = 'http://apu1.aus.wixpress.com:25780/app-integration-bus-web/backend'
|
30
34
|
end
|
31
35
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# THIS IS A GENERATED FILE, DO NOT EDIT THIS
|
2
|
-
# Generated on
|
2
|
+
# Generated on 2015-02-19T18:01:11.081Z
|
3
3
|
|
4
4
|
require 'hashie'
|
5
5
|
require 'hive/extensions/hashie_validate_enum'
|
@@ -7,16 +7,6 @@ require 'hive/extensions/hashie_validate_enum'
|
|
7
7
|
module Hive
|
8
8
|
module Activities
|
9
9
|
module Contact
|
10
|
-
class Name < Hashie::Trash
|
11
|
-
include Hashie::Extensions::IgnoreUndeclared
|
12
|
-
|
13
|
-
property :prefix
|
14
|
-
property :first
|
15
|
-
property :middle
|
16
|
-
property :last
|
17
|
-
property :suffix
|
18
|
-
end
|
19
|
-
|
20
10
|
class Company < Hashie::Trash
|
21
11
|
include Hashie::Extensions::IgnoreUndeclared
|
22
12
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# THIS IS A GENERATED FILE, DO NOT EDIT THIS
|
2
|
-
# Generated on
|
2
|
+
# Generated on 2015-02-19T18:01:10.985Z
|
3
3
|
|
4
4
|
require 'hashie'
|
5
5
|
require 'hive/extensions/hashie_validate_enum'
|
@@ -14,7 +14,7 @@ module Hive
|
|
14
14
|
property :value, required: true
|
15
15
|
end
|
16
16
|
|
17
|
-
class
|
17
|
+
class ContactFormActivity < Hashie::Trash
|
18
18
|
include Hashie::Extensions::IgnoreUndeclared
|
19
19
|
include Hashie::Extensions::Coercion
|
20
20
|
|