All Projects โ†’ appwrite โ†’ sdk-for-ruby

appwrite / sdk-for-ruby

Licence: BSD-3-Clause license
[READ-ONLY] Official Appwrite Ruby SDK ๐Ÿ’Ž ๐Ÿ”ด

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to sdk-for-ruby

demos-for-svelte
Demos and tutorials for getting started with Appwrite + Svelte
Stars: โœญ 27 (-40%)
Mutual labels:  baas, appwrite
sdk-for-kotlin
[READ-ONLY] Official Appwrite Kotlin SDK ๐Ÿ’™๐Ÿงก
Stars: โœญ 41 (-8.89%)
Mutual labels:  baas, appwrite
sdk-for-android
[READ-ONLY] Official Appwrite Android SDK ๐Ÿ’š ๐Ÿค–
Stars: โœญ 62 (+37.78%)
Mutual labels:  baas, appwrite
Appwrite
Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment ๐Ÿš€
Stars: โœญ 14,592 (+32326.67%)
Mutual labels:  baas, appwrite
demos-for-vue
Demos and tutorials for getting started with Appwrite + Vue.js
Stars: โœญ 37 (-17.78%)
Mutual labels:  baas, appwrite
playground-for-android
Simple examples that help you get started with Appwrite + Android (=โค๏ธ)
Stars: โœญ 48 (+6.67%)
Mutual labels:  baas, appwrite
sdk-for-dart
[READ-ONLY] Official Appwrite Dart SDK ๐Ÿ’™
Stars: โœญ 79 (+75.56%)
Mutual labels:  baas, appwrite
playground-for-node
Simple examples that help you get started with Appwrite + Node.js (=โค๏ธ)
Stars: โœญ 39 (-13.33%)
Mutual labels:  baas, appwrite
sdk-for-php
[READ-ONLY] Official Appwrite PHP SDK ๐Ÿ˜
Stars: โœญ 109 (+142.22%)
Mutual labels:  baas, appwrite
vbo365-rest
Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
Stars: โœญ 44 (-2.22%)
Mutual labels:  baas
FoodMagic
An AR App for Restaurants and Food Delivery โœจโœจ
Stars: โœญ 53 (+17.78%)
Mutual labels:  appwrite
php-clamav
ClamAV network and pipe client for PHP
Stars: โœญ 45 (+0%)
Mutual labels:  appwrite
ParseCareKit
Securely synchronize any CareKit 2.1+ based app to a Parse Server Cloud. Compatible with parse-hipaa.
Stars: โœญ 28 (-37.78%)
Mutual labels:  baas
appwrite-todo-with-nextjs
About A basic demo example for integrating between Appwrite & Next JS ๐Ÿ’™
Stars: โœญ 14 (-68.89%)
Mutual labels:  appwrite
hoodie-notes
A Markdown notebook built with React and Hoodie
Stars: โœญ 17 (-62.22%)
Mutual labels:  baas
parse-hipaa
HIPAA & GDPR compliant ready parse-server with postgres/mongo, parse-hipaa-dashboard. Compatible with ParseCareKit
Stars: โœญ 74 (+64.44%)
Mutual labels:  baas
playground-for-python
Simple examples that help you get started with Appwrite + Python (=โค๏ธ)
Stars: โœญ 36 (-20%)
Mutual labels:  appwrite
demo-todo-with-react
A basic demo example for integrating between Appwrite & React JS ๐Ÿ’™
Stars: โœญ 88 (+95.56%)
Mutual labels:  appwrite
BaaSDelphiSamples
๐Ÿ’พ Code samples for BaaS and PaaS using Delphi
Stars: โœญ 30 (-33.33%)
Mutual labels:  baas
sdk-for-svelte
Appwrite SDK for Svelte ๐Ÿงก โš ๏ธ Warning - this SDK was designed to support Appwrite 0.9 and is not compatible with the latest Appwrite versions. We are planing to refactor it as part of the SDK Generator for better support and maintenance.
Stars: โœญ 69 (+53.33%)
Mutual labels:  appwrite

Appwrite Ruby SDK

License Version Build Status Twitter Account Discord

This SDK is compatible with Appwrite server version 0.14.x. For older versions, please check previous 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 Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to https://appwrite.io/docs

Appwrite

Installation

To install via Gem:

gem install appwrite

Getting Started

Init your SDK

Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.

require 'appwrite'

client = Appwrite::Client.new()

client
    .set_endpoint(ENV["APPWRITE_ENDPOINT"]) # Your API Endpoint
    .set_project(ENV["APPWRITE_PROJECT"]) # Your project ID
    .set_key(ENV["APPWRITE_SECRET"]) # Your secret API key
    .setSelfSigned() # Use only on dev mode with a self-signed SSL cert
;

Make Your First Request

Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the API References section.

users = Appwrite::Users.new(client);

result = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password');

Full Example

require 'appwrite'

client = Appwrite::Client.new()

client
    .set_endpoint(ENV["APPWRITE_ENDPOINT"]) # Your API Endpoint
    .set_project(ENV["APPWRITE_PROJECT"]) # Your project ID
    .set_key(ENV["APPWRITE_SECRET"]) # Your secret API key
    .setSelfSigned() # Use only on dev mode with a self-signed SSL cert
;

users = Appwrite::Users.new(client);

result = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password');

Error Handling

The Appwrite Ruby SDK raises Appwrite::Exception object with message, code and response properties. You can handle any errors by catching Appwrite::Exception and present the message to the user or handle it yourself based on the provided error information. Below is an example.

users = Appwrite::Users.new(client);

begin
    result = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password');
rescue Appwrite::Exception => error
    puts error.message
end

Learn more

You can use the following resources to learn more and get help

Contribution

This library is auto-generated by Appwrite custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.

License

Please see the BSD-3-Clause license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].