Comments (3)
Hi,
You should pass CLOUDINARY_URL
to cloudinary.NewFromURL("") which initialises your Go environment with the correct credentials to talk to our API. This URL can be found in your Dashboard.
If you are trying to set up a custom domain for your images, then you should add a secure_cname
parameter to your CLOUDINARY_URL
.
So e.g.
cld, err := cloudinary.NewFromURL("cloudinary://<api_key>:<api_secret>@<cloud_name>?secure_cname=my.cname.com")
Hope this helps.
Thanks
from cloudinary-go.
Oh, thanks for the response. It was not clear from the documentation what the format was. Could you update the documentation and give this example?
Thanks!
from cloudinary-go.
Happy to see that it was helpful.
I will ask to update the documentation with the following examples as well.
Thanks!
from cloudinary-go.
Related Issues (19)
- NextCursor field in DeleteAssetsResult HOT 1
- Request params passed in for signing in Upload API request are not filtered in accordance with documentation HOT 1
- Promoted fields HOT 1
- Create signed request (signature) HOT 2
- Possible incorrect param for a function HOT 3
- Including Moderation in ExplicitResult (UploadResult). HOT 2
- Custom http.Client or http.RoundTripper HOT 1
- Signing Parameters overwrites existing timestamp HOT 1
- Unable to download a zip archive of multiple files HOT 3
- Include step go mod init before go get HOT 1
- NextCursor field in GetTransformationResult not being sent in response. HOT 2
- Introduce custom error types HOT 5
- Concurrency issue with analytics HOT 3
- Base64file uploading to cloudinary is not working HOT 2
- Context metadata is unavailable from admin.SearchAsset HOT 1
- Add support for `PlaybackURL` in `UploadResult` on video upload HOT 5
- Getting an error: invalid character '<' looking for beginning of value
- Add Access Control to UploadParams HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudinary-go.