https://github.com/kimvex/cloudinary
Library for upload images to cloudinary
https://github.com/kimvex/cloudinary
cloudinary crystal crystal-lang
Last synced: 3 months ago
JSON representation
Library for upload images to cloudinary
- Host: GitHub
- URL: https://github.com/kimvex/cloudinary
- Owner: kimvex
- License: mit
- Created: 2019-06-12T17:21:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T19:32:37.000Z (over 6 years ago)
- Last Synced: 2025-01-18T08:27:53.234Z (about 1 year ago)
- Topics: cloudinary, crystal, crystal-lang
- Language: Crystal
- Homepage: https://kimvex.github.io/cloudinary-doc-crystal/
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudinary
**THIS VERSION IS DEVELOPING**
Module that allows uploading images to cloudinary in an easy way
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
cloudinary:
github: kimvex/cloudinary
```
## Usage
```crystal
require "cloudinary"
```
```
CLOUDINARY = Cloudinary::Connect.new("api_key", "cloud_name", "preset")
server = HTTP::Server.new do |context|
response = CLOUDINARY.upload(
context,
"test"
)
context.response << response
end
server.bind_tcp 8085
server.listen
```
## Development
To upload images are authentication problems, you have to add a presets that give you that freedom
Go to documentation of cloudinary [add-new-preset](https://cloudinary.com/documentation/upload_images#upload_presets)
- Step 1: Enter the console of cloudinary
- Step 2: Go to `settings`
- Step 4: Go to the `upload` tab
- Step 5: Go down to the section `Upload presets` and `add_upload_preset`
- Step 6: You can add name to your preset or leave it with the name by default and then and **important** in `Signing Mode` choose it as `unsigned`
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [kimvex](https://github.com/your-github-user) Benjamin de la cruz Martinez - creator, maintainer