Skip to content

Commit 435cf28

Browse files
Merge pull request #82 from apivideo/documentation-repo-standalone
The documentation repo becomes independent :)
2 parents e71f654 + 60654a6 commit 435cf28

File tree

3 files changed

+46
-35
lines changed

3 files changed

+46
-35
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,4 @@ iOSInjectionProject/
102102
!*.xcworkspace/contents.xcworkspacedata
103103
**/xcshareddata/WorkspaceSettings.xcsettings
104104

105-
# End of https://www.toptal.com/developers/gitignore/api/swift,xcode
106-
documentation.md
105+
# End of https://www.toptal.com/developers/gitignore/api/swift,xcode

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ docs/VideoSource.md
4949
docs/VideoSourceLiveStream.md
5050
docs/VideoSourceLiveStreamLink.md
5151
docs/VideosAPI.md
52-
documentation.md
5352
git_push.sh
5453
post-generate.sh
5554
project.yml

README.md

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
<!--<documentation_excluded>-->
12
[![badge](https://img.shields.io/twitter/follow/api_video?style=social)](https://twitter.com/intent/follow?screen_name=api_video) &nbsp; [![badge](https://img.shields.io/github/stars/apivideo/api.video-swift-uploader?style=social)]() &nbsp; [![badge](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.api.video)](https://community.api.video)
23
![](https://github.com/apivideo/.github/blob/main/assets/apivideo_banner.png)
34
<h1 align="center">api.video Swift uploader</h1>
45

56
[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
67

7-
# Table of contents
8+
## Table of contents
89

910
- [Project description](#project-description)
1011
- [Getting started](#getting-started)
@@ -21,20 +22,32 @@
2122
- [Public endpoints](#public-endpoints)
2223
- [Have you gotten use from this API client?](#have-you-gotten-use-from-this-api-client)
2324
- [Contribution](#contribution)
25+
<!--</documentation_excluded>-->
26+
<!--<documentation_only>
27+
---
28+
title: Swift video uploader
29+
meta:
30+
description: The official Swift video uploader for api.video. [api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
31+
---
2432
25-
# Project description
33+
# api.video Swift video uploader
2634
27-
api.video's Swift for iOS, macOS and tvOS uploads videos to api.video using delegated upload token or API Key.
35+
[api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
36+
</documentation_only>-->
37+
38+
## Project description
39+
40+
api.video's Swift video uploader for iOS, macOS and tvOS uploads videos to api.video using delegated upload token or API Key.
2841

2942
It allows you to upload videos in two ways:
3043
- standard upload: to send a whole video file in one go
3144
- progressive upload: to send a video file by chunks, without needing to know the final size of the video file
3245

33-
# Getting started
46+
## Getting started
3447

35-
## Installation
48+
### Installation
3649

37-
### Carthage
50+
#### Carthage
3851

3952
Specify it in your `Cartfile`:
4053

@@ -44,7 +57,7 @@ github "apivideo/api.video-swift-uploader" ~> 1.2.2
4457

4558
Run `carthage update`
4659

47-
### CocoaPods
60+
#### CocoaPods
4861

4962
Add `pod 'ApiVideoUploader', '1.2.2'` in your `Podfile`
5063

@@ -69,66 +82,66 @@ try VideosAPI.uploadWithUploadToken(token: "MY_VIDEO_TOKEN", file: url) { video,
6982
}
7083
```
7184

72-
# Documentation
85+
## Documentation
7386

74-
## API Endpoints
87+
### API Endpoints
7588

7689
All URIs are relative to *https://ws.api.video*
7790

7891

79-
### VideosAPI
92+
#### VideosAPI
8093

81-
#### Retrieve an instance of VideosAPI:
94+
##### Retrieve an instance of VideosAPI:
8295

8396
```swift
8497
VideosAPI
8598
```
8699

87-
#### Endpoints
100+
##### Endpoints
88101

89102
Method | HTTP request | Description
90103
------------- | ------------- | -------------
91-
[**upload**](docs/VideosAPI.md#upload) | **POST** /videos/{videoId}/source | Upload a video
92-
[**uploadWithUploadToken**](docs/VideosAPI.md#uploadWithUploadToken) | **POST** /upload | Upload with an delegated upload token
104+
[**upload**](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/VideosAPI.md#upload) | **POST** /videos/{videoId}/source | Upload a video
105+
[**uploadWithUploadToken**](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/VideosAPI.md#uploadWithUploadToken) | **POST** /upload | Upload with an delegated upload token
93106

94107

95108

96-
## Models
109+
### Models
97110

98-
- [AccessToken](docs/AccessToken.md)
99-
- [AdditionalBadRequestErrors](docs/AdditionalBadRequestErrors.md)
100-
- [AuthenticatePayload](docs/AuthenticatePayload.md)
101-
- [BadRequest](docs/BadRequest.md)
102-
- [Metadata](docs/Metadata.md)
103-
- [NotFound](docs/NotFound.md)
104-
- [RefreshTokenPayload](docs/RefreshTokenPayload.md)
105-
- [Video](docs/Video.md)
106-
- [VideoAssets](docs/VideoAssets.md)
107-
- [VideoSource](docs/VideoSource.md)
108-
- [VideoSourceLiveStream](docs/VideoSourceLiveStream.md)
109-
- [VideoSourceLiveStreamLink](docs/VideoSourceLiveStreamLink.md)
111+
- [AccessToken](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/AccessToken.md)
112+
- [AdditionalBadRequestErrors](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/AdditionalBadRequestErrors.md)
113+
- [AuthenticatePayload](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/AuthenticatePayload.md)
114+
- [BadRequest](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/BadRequest.md)
115+
- [Metadata](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/Metadata.md)
116+
- [NotFound](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/NotFound.md)
117+
- [RefreshTokenPayload](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/RefreshTokenPayload.md)
118+
- [Video](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/Video.md)
119+
- [VideoAssets](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/VideoAssets.md)
120+
- [VideoSource](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/VideoSource.md)
121+
- [VideoSourceLiveStream](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/VideoSourceLiveStream.md)
122+
- [VideoSourceLiveStreamLink](https://github.com/apivideo/api.video-swift-uploader/blob/main/docs/VideoSourceLiveStreamLink.md)
110123

111124

112-
## Documentation for Authorization
125+
### Documentation for Authorization
113126

114-
### API key
127+
#### API key
115128

116129
Most endpoints required to be authenticated using the API key mechanism described in our [documentation](https://docs.api.video/reference#authentication).
117130

118131
You must NOT store your API key in your application code to prevent your API key from being exposed in your source code.
119132
Only the [Public endpoints](#public-endpoints) can be called without authentication.
120133
In the case, you want to call an endpoint that requires authentication, you will have to use a backend server. See [Security best practices](https://docs.api.video/sdks/security) for more details.
121134

122-
### Public endpoints
135+
#### Public endpoints
123136

124137
Some endpoints don't require authentication. These one can be called without setting `ApiVideoUploader.apiKey`.
125138

126-
## Have you gotten use from this API client?
139+
### Have you gotten use from this API client?
127140

128141
Please take a moment to leave a star on the client ⭐
129142

130143
This helps other users to find the clients and also helps us understand which clients are most popular. Thank you!
131144

132-
# Contribution
145+
## Contribution
133146

134147
Since this API client is generated from an OpenAPI description, we cannot accept pull requests made directly to the repository. If you want to contribute, you can open a pull request on the repository of our [client generator](https://github.com/apivideo/api-client-generator). Otherwise, you can also simply open an issue detailing your need on this repository.

0 commit comments

Comments
 (0)