Skip to content

Commit

Permalink
Upgraded to support Appwrite 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Feb 11, 2021
1 parent c33b9f7 commit 866d738
Show file tree
Hide file tree
Showing 9 changed files with 326 additions and 115 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2019 Appwrite (https://appwrite.io) and individual contributors.
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
8 changes: 5 additions & 3 deletions README.md
@@ -1,7 +1,9 @@
# Appwrite Web SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-js.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.6.2-blue.svg?v=1)
![License](https://img.shields.io/github/license/appwrite/sdk-for-web.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.7.0-blue.svg?v=1)

**This SDK is compatible with Appwrite server version 0.7.0. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**

Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
Use the Web SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
Expand Down Expand Up @@ -30,7 +32,7 @@ import * as Appwrite from "appwrite";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/appwrite@1.2.0"></script>
<script src="https://cdn.jsdelivr.net/npm/appwrite@2.0.0"></script>
```

## Getting Started
Expand Down
14 changes: 14 additions & 0 deletions docs/examples/functions/create-execution.md
@@ -0,0 +1,14 @@
let sdk = new Appwrite();

sdk
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;

let promise = sdk.functions.createExecution('[FUNCTION_ID]');

promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});
14 changes: 14 additions & 0 deletions docs/examples/functions/get-execution.md
@@ -0,0 +1,14 @@
let sdk = new Appwrite();

sdk
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;

let promise = sdk.functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]');

promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});
14 changes: 14 additions & 0 deletions docs/examples/functions/list-executions.md
@@ -0,0 +1,14 @@
let sdk = new Appwrite();

sdk
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;

let promise = sdk.functions.listExecutions('[FUNCTION_ID]');

promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -2,13 +2,13 @@
"name": "appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "1.2.0",
"version": "2.0.0",
"license": "BSD-3-Clause",
"main": "src/sdk.js",
"types": "types/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/appwrite/sdk-for-js"
"url": "https://github.com/appwrite/sdk-for-web"
},
"devDependencies": {
"typescript": "^3.6.4"
Expand Down

0 comments on commit 866d738

Please sign in to comment.