Skip to content

Commit d390c2a

Browse files
authored
Update README.md
1 parent 4bdfdad commit d390c2a

1 file changed

Lines changed: 43 additions & 1 deletion

File tree

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
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+
[![GitHub Repo stars](https://img.shields.io/github/stars/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github)](https://github.com/codebeamorg/codebeam.googleapis.blazor/stargazers)
5+
[![GitHub last commit](https://img.shields.io/github/last-commit/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github)](https://github.com/codebeamorg/codebeam.googleapis.blazor)
6+
[![Contributors](https://img.shields.io/github/contributors/codebeamorg/codebeam.googleapis.blazor?color=594ae2&style=flat-square&logo=github)](https://github.com/codebeamorg/codebeam.googleapis.blazor/graphs/contributors)
7+
[![Nuget version](https://img.shields.io/nuget/v/CodeBeam.GoogleApis.Blazor?color=ff4081&label=nuget%20version&logo=nuget&style=flat-square)](https://www.nuget.org/packages/codebeam.googleapis.blazor/)
8+
[![Nuget downloads](https://img.shields.io/nuget/dt/CodeBeam.GoogleApis.Blazor?color=ff4081&label=nuget%20downloads&logo=nuget&style=flat-square)](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

Comments
 (0)