Skip to content

feat(SetServiceUrl): provide setServiceUrl method and use serviceUrl #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ IEnumerator TokenExample()
yield return null;

assistant = new AssistantService(versionDate, authenticator);
assistant.SetServiceUrl("<service-url>");
assistant.ListWorkspaces(callback: OnListWorkspaces);
}

Expand All @@ -140,6 +141,7 @@ void TokenExample()
authenticator = new BearerTokenAuthenticator("<bearer-token>");

assistant = new AssistantService(versionDate, authenticator);
assistant.SetServiceUrl("<service-url>");
assistant.ListWorkspaces(callback: OnListWorkspaces);
}

Expand All @@ -159,6 +161,7 @@ void UsernamePasswordExample()
{
Authenticator authenticator = new BasicAuthenticator("<username>", "<password>", "<url>");
assistant = new AssistantService(versionDate, authenticator);
assistant.SetServiceUrl("<service-url>");
}
```

Expand Down Expand Up @@ -221,8 +224,10 @@ Authenticator discoveryAuthenticator;
private void Example()
{
assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);
assistant.SetServiceUrl("<service-url>");

discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);
discovery.SetServiceUrl("<service-url>");

// Call with sepcific callbacks
assistant.Message(
Expand Down Expand Up @@ -260,6 +265,7 @@ Authenticator discoveryAuthenticator;
private void Example()
{
assistant = new AssistantService(assistantVersionDate, assistantAuthenticator);
assistant.SetServiceUrl("<service-url>");

// Call with generic callbacks
JObject input = new JObject();
Expand All @@ -270,6 +276,9 @@ private void Example()
input: input
);

discovery = new DiscoveryService(discoveryVersionDate, discoveryAuthenticator);
discovery.SetServiceUrl("<service-url>");

discovery.ListEnvironments(
callback: OnSuccess
);
Expand Down Expand Up @@ -303,6 +312,7 @@ private void Example()
sort: "-name",
includeAudit: true
);
assistant.SetServiceUrl("<service-url>");
}
```

Expand Down
Loading