Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

directus_sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directus_sdk

  • 1.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

directus_sdk

DirectusSDK - the Ruby gem for the directus.io

API for directus.io

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.1
  • Package version: 1.1.1
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build directus_sdk.gemspec

Then either install the gem locally:

gem install ./directus_sdk-1.1.1.gem

(for development, run gem install --dev ./directus_sdk-1.1.1.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'directus_sdk', '~> 1.1.1'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'directus_sdk', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'directus_sdk'

# Setup authorization
DirectusSDK.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['access_token'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['access_token'] = 'Bearer'
  # Configure your host
  config.host = "myinstance.directus.io"
  # Enable or disable debugging output
  config.debugging = false
end

api_instance = DirectusSDK::ActivityApi.new

begin
  #Returns activity
  result = api_instance.get_activity
  p result
rescue DirectusSDK::ApiError => e
  puts "Exception when calling ActivityApi->get_activity: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://myinstance.directus.io/api/1.1

ClassMethodHTTP requestDescription
DirectusSDK::ActivityApiget_activityGET /activityReturns activity
DirectusSDK::BookmarksApiadd_bookmarkPOST /bookmarksCreate a column in a given table
DirectusSDK::BookmarksApidelete_bookmarkDELETE /bookmarks/{bookmarkId}Deletes specific bookmark
DirectusSDK::BookmarksApiget_bookmarkGET /bookmarks/{bookmarkId}Returns specific bookmark
DirectusSDK::BookmarksApiget_bookmarksGET /bookmarksReturns bookmarks
DirectusSDK::BookmarksApiget_bookmarks_selfGET /bookmarks/selfReturns bookmarks of current user
DirectusSDK::FilesApicreate_filePOST /filesCreates file
DirectusSDK::FilesApiget_fileGET /files/{fileId}Returns specific file by id
DirectusSDK::FilesApiget_filesGET /filesReturns files
DirectusSDK::FilesApiupdate_filePUT /files/{fileId}Creates file
DirectusSDK::GroupsApiadd_groupPOST /groupsAdd a new group
DirectusSDK::GroupsApiadd_privilegePOST /privileges/{groupId}Create new table privileges for the specified user group
DirectusSDK::GroupsApiget_groupGET /groups/{groupId}Returns specific group
DirectusSDK::GroupsApiget_groupsGET /groupsReturns groups
DirectusSDK::GroupsApiget_privilegesGET /privileges/{groupId}Returns group privileges
DirectusSDK::GroupsApiget_privileges_for_tableGET /privileges/{groupId}/{tableNameOrPrivilegeId}Returns group privileges by tableName
DirectusSDK::GroupsApiupdate_privilegesPUT /privileges/{groupId}/{tableNameOrPrivilegeId}Update privileges by privilegeId
DirectusSDK::MessagesApiget_messageGET /messages/{messageId}Returns specific message
DirectusSDK::MessagesApiget_messagesGET /messages/selfReturns messages
DirectusSDK::PreferencesApiget_preferencesGET /tables/{tableId}/preferencesReturns table preferences
DirectusSDK::PreferencesApiupdate_preferencesPUT /tables/{tableId}/preferencesUpdate table preferences
DirectusSDK::SettingsApiget_settingsGET /settingsReturns settings
DirectusSDK::SettingsApiget_settings_forGET /settings/{collectionName}Returns settings for collection
DirectusSDK::SettingsApiupdate_settingsPUT /settings/{collectionName}Update settings
DirectusSDK::TablesApiadd_columnPOST /tables/{tableId}/columnsCreate a column in a given table
DirectusSDK::TablesApiadd_rowPOST /tables/{tableId}/rowsAdd a new row
DirectusSDK::TablesApiadd_tablePOST /tablesAdd a new table
DirectusSDK::TablesApidelete_columnDELETE /tables/{tableId}/columns/{columnName}Delete row
DirectusSDK::TablesApidelete_rowDELETE /tables/{tableId}/rows/{rowId}Delete row
DirectusSDK::TablesApidelete_tableDELETE /tables/{tableId}Delete Table
DirectusSDK::TablesApiget_tableGET /tables/{tableId}Returns specific table
DirectusSDK::TablesApiget_table_columnGET /tables/{tableId}/columns/{columnName}Returns specific table column
DirectusSDK::TablesApiget_table_columnsGET /tables/{tableId}/columnsReturns table columns
DirectusSDK::TablesApiget_table_rowGET /tables/{tableId}/rows/{rowId}Returns specific table row
DirectusSDK::TablesApiget_table_rowsGET /tables/{tableId}/rowsReturns table rows
DirectusSDK::TablesApiget_tablesGET /tablesReturns tables
DirectusSDK::TablesApiupdate_columnPUT /tables/{tableId}/columns/{columnName}Update column
DirectusSDK::TablesApiupdate_rowPUT /tables/{tableId}/rows/{rowId}Update row
DirectusSDK::UtilsApiget_hashPOST /hashGet a hashed value
DirectusSDK::UtilsApiget_randomPOST /randomReturns random alphanumeric string

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: access_token
  • Location: URL query string

FAQs

Package last updated on 03 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc