<commit_before># GoogleLibrary
Some random methods for the Google APIs Client Library

#### Example UserManager
```csharp
var clientSecrets = new ClientSecrets()
{
    ClientId = "yourclientid",
    ClientSecret = "yourclientsecret"
};

var scope = new List<string>()
{
    // example scopes for the google assistant
    "openid",
    "https://www.googleapis.com/auth/assistant-sdk-prototype"
};

// example endpoint for the google assistant
string endpoint = "embeddedassistant.googleapis.com";
await UserManager.Initialize(clientSecrets, "GoogleLibrary", endpoint, scope, "GoogleLibraryFolder");

var accessToken = UserManager.Instance.UserToken.AccessToken;
var userData = await UserManager.Instance.GetUserData(accessToken);
```

You can create your own ClientSecrets [here](https://console.cloud.google.com/apis/credentials)

### Troubleshooting
If there is a System.Reflection.TargetInvocationException try to update all NuGet Packages





##### Thanks to [this project](https://github.com/ac87/GoogleAssistantWindows) for the example to get started with google apis<commit_msg>edit readme<commit_after># GoogleLibrary
Some random methods for the Google APIs Client Library

#### Example UserManager
```csharp
var clientSecrets = new ClientSecrets()
{
    ClientId = "yourclientid",
    ClientSecret = "yourclient<PASSWORD>"
};

var scope = new List<string>()
{
    // example scopes for the google assistant
    "openid",
    "https://www.googleapis.com/auth/assistant-sdk-prototype"
};

// example endpoint for the google assistant
string endpoint = "embeddedassistant.googleapis.com";
await UserManager.Initialize(clientSecrets, "GoogleLibrary", endpoint, scope, "GoogleLibraryFolder");

// here you have your AccessToken
// with this Token you can authenticate with the google services
var accessToken = UserManager.Instance.UserToken.AccessToken;

// i implemented for example a method to get your google user data with the AccessToken
var userData = await UserManager.Instance.GetUserData(accessToken);
```

You can create your own ClientSecrets [here](https://console.cloud.google.com/apis/credentials)

### Troubleshooting
If there is a System.Reflection.TargetInvocationException try to update all NuGet Packages





##### Thanks to [this project](https://github.com/ac87/GoogleAssistantWindows) for the example to get started with google apis
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 5.213157894736842, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '585848', 'n_tokens_mistral': 652, 'n_tokens_neox': 626, 'n_words': 206}