Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Add error parameter to README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
spinosa committed Nov 19, 2016
1 parent c923814 commit 0a23176
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -74,10 +74,10 @@ import WistiaKit
let globalAPI = WistiaAPI(apiToken:"C4NTB3L13V3TH1S1SARAND0MT0K3N")

func printMediasByProject(){
globalAPI.listProjects { (projects) in
globalAPI.listProjects { (projects, error) in
for project in projects {
print("\(project) medias:")
globalAPI.listMedias(limitedToProject: project, completionHandler: { (medias) in
globalAPI.listMedias(limitedToProject: project, completionHandler: { (medias, error) in
for media in medias {
print(" \(media)")
}
Expand Down Expand Up @@ -119,7 +119,7 @@ api.upload(fileURL: fileURL!, into: "ProjectHashedID", name: "Hello, World!",
progressHandler: { progress in
print("reticulating splines... \(progress)")
},
completionHandler: { media in
completionHandler: { media, error in
print("You've got media! \(media)")
})
```
Expand Down

0 comments on commit 0a23176

Please sign in to comment.