|
1 | | -GoogleApis.Blazor |
| 1 | +# CodeBeam.GoogleApis.Blazor |
| 2 | +## An open-source utility package for GoogleApis in Blazor. |
| 3 | +## Always aim for the easiest to use. |
| 4 | +[](https://github.com/codebeamorg/codebeam.googleapis.blazor/stargazers) |
| 5 | +[](https://github.com/codebeamorg/codebeam.googleapis.blazor) |
| 6 | +[](https://github.com/codebeamorg/codebeam.googleapis.blazor/graphs/contributors) |
| 7 | +[](https://www.nuget.org/packages/codebeam.googleapis.blazor/) |
| 8 | +[](https://www.nuget.org/packages/codebeam.googleapis.blazor/) |
| 9 | + |
| 10 | +This repo is still in earlier stage of development, but all completed parts already tested with real world applications. |
| 11 | + |
| 12 | +## Documentation |
| 13 | +Prepairing. |
| 14 | + |
| 15 | + |
| 16 | +## Contributing |
| 17 | +Welcome to all contributors! |
| 18 | + |
| 19 | + |
| 20 | +## Usage |
| 21 | +### Preliminary: Set your google account and your project credentials |
| 22 | +Nothing special with this package. |
| 23 | +### Step 1: Inject HttpClientFactory |
| 24 | + |
| 25 | +For blazor component files |
| 26 | +```razor |
| 27 | +@inject IHttpClientFactory HttpClientFactory |
| 28 | +``` |
| 29 | +For cs files |
| 30 | +```cs |
| 31 | +[Inject] IHttpClientFactory HttpClientFactory { get; set; } |
| 32 | +``` |
| 33 | + |
| 34 | +### Step 2: Create an instance of needed api class and implement |
| 35 | +```cs |
| 36 | +private void NewCalendar() |
| 37 | +{ |
| 38 | + CalendarService calendarService = new CalendarService(HttpClientFactory); |
| 39 | + calendarService.AddCalendar(_accessToken, "Calendar Title"); //Can get access token with AuthService. |
| 40 | +} |
| 41 | +``` |
| 42 | + |
| 43 | +### Step 3: null. That's all. |
0 commit comments