Skip to content

Commit

Permalink
fix: removed hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
EragonJ committed Feb 9, 2023
1 parent ebba2dc commit b2b6fb3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,9 @@ copicake.image
},
})
.then((response) => {
// You will get a rendering response with processing state.
// https://docs.copicake.com/#/api/v1/image/create?id=response
console.log(response);
})
.catch((error) => {
// For more details, please check https://docs.copicake.com/#/errors
console.error(error);
});
```
Expand All @@ -72,11 +69,9 @@ const renderingId = `YOUR_RENDERING_ID`;
copicake.image
.get(renderingId)
.then((response) => {
// For more details, please check https://docs.copicake.com/#/api/rendering
console.log(response);
})
.catch((error) => {
// For more details, please check https://docs.copicake.com/#/errors
console.error(error);
});
```
Expand All @@ -97,15 +92,13 @@ const renderingId = `YOUR_RENDERING_ID`;
copicake.image
.getUntilFinished(renderingId)
.then((response) => {
// For more details, please check https://docs.copicake.com/#/api/rendering
if (response.status === "success") {
// do something
} else if (response.status === "failed") {
// do something
}
})
.catch((error) => {
// For more details, please check https://docs.copicake.com/#/errors
console.error(error);
});
```
Expand Down

0 comments on commit b2b6fb3

Please sign in to comment.