Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #132 from smartsheet-platform/europe
Browse files Browse the repository at this point in the history
Europe
  • Loading branch information
MatsumiyaT committed Oct 4, 2021
2 parents fad8857 + eace510 commit ab79dfb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
24 changes: 23 additions & 1 deletion ADVANCED.md
Expand Up @@ -232,7 +232,7 @@ using the same `NextStreamPosition` value until the next list of events is retri

Many events have additional information available as part of the event. That information can be accessed using the
Dictionary stored in the `AdditionalDetails` property. Information about the additional details provided can be found
[here.](https://smartsheet-platform.github.io/event-reporting-docs/)
[here.](https://smartsheet.redoc.ly/tag/eventsDescription)

```csharp
class Program
Expand Down Expand Up @@ -324,4 +324,26 @@ static void Sample()
);
Console.WriteLine("Loaded " + sheet.Rows.Count + " rows from sheet: " + sheet.Name);
}

```

## Working With Smartsheet Regions Europe Accounts

If you need to access Smartsheet Regions Europe you will need to specify the Smartsheet.eu API URI as the base URI during creation of the Smartsheet client object. Smartsheet.eu uses a base URI of https://api.smartsheet.eu/2.0/. The base URI is defined as a constant in the SmartsheetBuilder class (i.e. `SmartsheetBuilder.EU_BASE_URI`).

Invoke the SmartsheetBuilder with the base URI pointing to Smartsheet.eu:

```csharp
using Smartsheet.Api;
using Smartsheet.Api.Models;

static void Sample()
{
// Initialize client
SmartsheetClient smartsheet = new SmartsheetBuilder()
.SetBaseURI(SmartsheetBuilder.EU_BASE_URI)
// TODO: Set your API access in environment variable SMARTSHEET_ACCESS_TOKEN or else here
// .SetAccessToken("ll352u9jujauoqz4gstvsae05")
.Build();
}
```
8 changes: 4 additions & 4 deletions README.md
@@ -1,6 +1,6 @@
# Smartsheet SDK for C# [![Build Status](https://travis-ci.org/smartsheet-platform/smartsheet-csharp-sdk.svg?branch=master)](https://travis-ci.org/smartsheet-platform/smartsheet-csharp-sdk) [![Coverage Status](https://coveralls.io/repos/github/smartsheet-platform/smartsheet-csharp-sdk/badge.svg?branch=master)](https://coveralls.io/github/smartsheet-platform/smartsheet-csharp-sdk?branch=master) [![NuGet](https://img.shields.io/nuget/v/smartsheet-csharp-sdk.svg)](https://www.nuget.org/packages/smartsheet-csharp-sdk/)

This is a C# SDK to simplify connecting to the [Smartsheet API](https://smartsheet-platform.github.io/api-docs/) from .NET applications.
This is a C# SDK to simplify connecting to the [Smartsheet API](https://smartsheet.redoc.ly) from .NET applications.

**NOTE ON 2.93.0 RELEASE**

Expand All @@ -11,7 +11,7 @@ therefore, this release changes the global behavior to disable this feature of J

```csharp
SmartsheetClient smartsheet = new SmartsheetBuilder()
.SetAccessToken("feo3t736fc2lpansdevs4a1as") // TODO: Set your API access in environment variable SMARTSHEET_ACCESS_TOKEN or else here
.SetAccessToken("JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789") // TODO: Set your API access in environment variable SMARTSHEET_ACCESS_TOKEN or else here
.SetHttpClient(new RetryHttpClient())
.SetDateTimeFixOptOut(true)
.Build();
Expand Down Expand Up @@ -69,7 +69,7 @@ static void Sample()
// Initialize client
SmartsheetClient smartsheet = new SmartsheetBuilder()
// TODO: Set your API access in environment variable SMARTSHEET_ACCESS_TOKEN or else here
// .SetAccessToken("ll352u9jujauoqz4gstvsae05")
// .SetAccessToken("JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789")
.Build();

// List all sheets
Expand Down Expand Up @@ -106,7 +106,7 @@ A simple, but complete sample application project is here: https://github.com/sm
For details about logging, testing, how to use a passthrough option, and how to override HTTP client behavior, see [Advanced Topics](ADVANCED.md).

## Documentation
The full Smartsheet API documentation is here: http://smartsheet-platform.github.io/api-docs/?csharp#.
The full Smartsheet API documentation is here: https://smartsheet.redoc.ly.

The generated SDK class documentation is here: [http://smartsheet-platform.github.io/smartsheet-csharp-sdk/](http://smartsheet-platform.github.io/smartsheet-csharp-sdk/).

Expand Down

0 comments on commit ab79dfb

Please sign in to comment.