Skip to content

Commit

Permalink
updated readme with example of GET categories subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbagias committed Jul 19, 2017
1 parent 5890766 commit 8145b5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion TestVzaar/VideosViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class VideosViewController: UIViewController , VzaarUploadProgressDelegate, UITa

let vzaarGetVideosParameters = VzaarGetVideosParameters()
vzaarGetVideosParameters.state = state
vzaarGetVideosParameters.
vzaarGetVideosParameters.per_page = 50

Vzaar.sharedInstance().getVideos(vzaarGetVideosParameters: vzaarGetVideosParameters, success: { (vzaarVideos) in
Expand Down
18 changes: 16 additions & 2 deletions README.md → Vzaar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Video Hosting For Business.
* It allows your customers to upload their own videos via the vzaar API.
* Pull information from vzaar databases and combine them with your app's own data.
* For instance sync your product catalogue with your videos so that videos always appear on the right product page.
* Version 1.0.1
* Version 1.0.4

## Documentation ##

Expand Down Expand Up @@ -195,6 +195,20 @@ Vzaar.sharedInstance().getCategories(vzaarGetCategoriesParameters: categoriesPar
//Handle categories from the response.
}, failure: { (vzaarError) in
print(vzaarError)
}) { (error) in
print(error)
}
```
### Get Category Subtree ###
```
let categorySubtreeParameter = VzaarGetCategoriesSubtreeParameters(id: Int32(categoryId))
Vzaar.sharedInstance().getCategoriesSubtree(vzaarGetCategoriesSubtreeParameters: categorySubtreeParameter, success: { (vzaarCategories) in
//Handle categories from the response.
}, failure: { (vzaarError) in
print(vzaarError)
}) { (error) in
Expand Down Expand Up @@ -506,7 +520,7 @@ print(error)
#!objective-c
target 'YourProject' do
pod 'VzaarSwift', '~> 1.0.1-objc'
pod 'VzaarSwift', '~> 1.0.4-objc'
end
use_frameworks!
Expand Down

0 comments on commit 8145b5d

Please sign in to comment.