Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
robbporto committed Sep 16, 2019
2 parents aae9606 + 544cd27 commit c2b68e8
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end

puts "Your access token is #{auth.access_token}"
```
Now you can use the ```access_token``` in the docusign [api explorer](https://stage.cartavi.com/restapi/swashbuckle/ui/index).
Now you can use the ```access_token``` in the docusign [api explorer](https://demo.rooms.docusign.com/restapi/swashbuckle/ui/index).

When you receive a DocusignDtr::ConsentRequired error Send your client to the grant_url above and they will be required to authenticate your app. Once they authorize your app they will be redirected to the redirect_url (for now its google.com)
When you receive an auth object you can use the access_token to connect to resources:
Expand Down
2 changes: 1 addition & 1 deletion lib/docusign_dtr/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def Profile # rubocop:disable Naming/MethodName
end

def base_uri
@base_uri ||= @test_mode ? 'https://stage.cartavi.com/restapi/v1' : 'https://realestate.docusign.com/restapi/v1'
@base_uri ||= @test_mode ? 'https://demo.rooms.docusign.com/restapi/v1' : 'https://rooms.docusign.com/restapi/v1'
end

private
Expand Down
6 changes: 3 additions & 3 deletions spec/docusign_dtr/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

RSpec.describe DocusignDtr::Client do
subject { DocusignDtr::Client.new(token: :token) }
let(:prod_url) { 'https://realestate.docusign.com/restapi/v1' }
let(:test_url) { 'https://stage.cartavi.com/restapi/v1' }
let(:prod_url) { 'https://rooms.docusign.com/restapi/v1' }
let(:test_url) { 'https://demo.rooms.docusign.com/restapi/v1' }

describe '#initialize' do
it { expect(subject.token).to eq :token }
Expand Down Expand Up @@ -76,7 +76,7 @@
def mock(code: 200)
WebMock.reset!
WebMock
.stub_request(:get, 'https://stage.cartavi.com/restapi/v1/test?id=47')
.stub_request(:get, 'https://demo.rooms.docusign.com/restapi/v1/test?id=47')
.with(
headers: {
'Accept': 'application/json',
Expand Down
4 changes: 2 additions & 2 deletions spec/docusign_dtr/models/document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
people_with_access: 1,
is_signed: false,
links: [
{ name: 'Download', url: 'https://stage.cartavi.com/restapi/v1/documents/114254' },
{ name: 'Details', url: 'https://stage.cartavi.com/restapi/v1/documents/114254/details' }
{ name: 'Download', url: 'https://demo.rooms.docusign.com/restapi/v1/documents/114254' },
{ name: 'Details', url: 'https://demo.rooms.docusign.com/restapi/v1/documents/114254/details' }
]
}
end
Expand Down
2 changes: 1 addition & 1 deletion spec/docusign_dtr/room_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@
room_image_url: nil,
room_name: 'The Room',
status: 'Active',
view_link: 'https://stage.cartavi.com/transaction/88593'
view_link: 'https://demo.rooms.docusign.com/transaction/88593'
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/webmocks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def filename_to_path(filename)
end

def endpoint_to_url(endpoint)
dotloop_url = 'https://stage.cartavi.com/restapi/v1/'
dotloop_url = 'https://demo.rooms.docusign.com/restapi/v1/'
[dotloop_url, endpoint].join
end

Expand Down
2 changes: 1 addition & 1 deletion spec/stub_responses/rooms/123.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"roomId": 88593,
"viewLink": "https://stage.cartavi.com/transaction/88593",
"viewLink": "https://demo.rooms.docusign.com/transaction/88593",
"status": "Active",
"lastUpdatedDate": "2018-09-30T00:45:51.853",
"owners": [
Expand Down
2 changes: 1 addition & 1 deletion spec/stub_responses/rooms_page2.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
}
],
"resultSetSize": 6,
"previousUri": "https://stage.cartavi.com/restapi/v1/rooms?startPosition=0&count=100&sort=roomname&roomStatus=Open&ownedOnly=False",
"previousUri": "https://demo.rooms.docusign.com/restapi/v1/rooms?startPosition=0&count=100&sort=roomname&roomStatus=Open&ownedOnly=False",
"startPosition": 10,
"endPosition": 15
}

0 comments on commit c2b68e8

Please sign in to comment.