From d58cd0c351279dcedd5a81172eebed518b8601f7 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Thu, 25 Jul 2024 21:10:04 +0200 Subject: [PATCH] added go build and updated readme --- .github/dependabot.yml | 15 +++++++++++++++ .github/workflows/go-build.yml | 28 ++++++++++++++++++++++++++++ README.md | 31 +++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/go-build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4801a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +--- +version: 2 +updates: + - package-ecosystem: gomod + directory: / + schedule: + interval: weekly + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + - package-ecosystem: gomod + directory: /tests + schedule: + interval: weekly \ No newline at end of file diff --git a/.github/workflows/go-build.yml b/.github/workflows/go-build.yml new file mode 100644 index 0000000..23df281 --- /dev/null +++ b/.github/workflows/go-build.yml @@ -0,0 +1,28 @@ +name: Go build +# +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +# +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.18.x', '1.19.x', '1.20.x', '1.21.x' ] + steps: + - uses: actions/checkout@v3 + # + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + cache-dependency-path: subdir/go.sum + cache: true + # + - name: Build + run: go build -v ./... + # + # \ No newline at end of file diff --git a/README.md b/README.md index ab3206c..3582210 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,33 @@ # tiktok-go-sdk + TikTok Go SDK: A simple library for interacting with TikTok Developer API in Go. + + +## Overview +The TikTok Go SDK provides a straightforward way to integrate TikTok's Developer API into your Go applications. + +## Installation +To install the SDK, use go get: + +```sh + +go get github.com/HiWay-Media/tiktok-go-sdk +``` + +## Usage +Import the Package +```go + +import "github.com/HiWay-Media/tiktok-go-sdk" +``` + +## Features +- Authentication +- Fetch user data +- Post videos + +## Contributing +Feel free to submit issues and pull requests. + +## License +This project is licensed under the MIT License. \ No newline at end of file