Sha256: ba4a5ee8f12ed3ec39233b21f4a87d83107f7baf9d7d78d38ba71be8704ca811

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

# bundle exec ruby examples/example_queries.rb

require 'storyblok'

logger = Logger.new(STDOUT)

client = Storyblok::Client.new(
  token: 'FtyUE8zLpZox3ptNYz3dgQtt',
  api_url: 'localhost:3001',
  secure: false,
  logger: logger
)

p client.datasources
p client.stories(starts_with: 'en/news')
p client.story('demo1')
p client.datasource_entries(datasource: 'labels', per_page: 10)
p client.links

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
storyblok-2.0.7 examples/example_queries.rb
storyblok-2.0.6 examples/example_queries.rb
storyblok-2.0.5 examples/example_queries.rb
storyblok-2.0.4 examples/example_queries.rb