Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to provide imageUrl in function createPin(note, boardId, imageUrl, link, onSuccess, onError) #1

Closed
tonystaa opened this issue Nov 22, 2017 · 1 comment
Labels

Comments

@tonystaa
Copy link

tonystaa commented Nov 22, 2017

I can't find a way to provide imageUrl for the image that I have captured using :

cordova-plugin-camera

I tried passing the FILE_URI provided by this plugin, but I got this error :

message: "Parameter 'image_url' (value file:///storage/emulated/0/Android/data/com.xyzapp.ghera/cache/1511345813897.jpg) is not a valid URL format."
param: "image_url"
type: "api"

I tried passing the whole binary value from DATA_URL of image but that also resulted in error.

But when I provided a url from internet it worked.
Please tell me how can I provide image_url of the image from my device

@ihadeed
Copy link
Member

ihadeed commented Nov 22, 2017

You need to upload the image somewhere, you can't upload directly to Pinterest through their mobile SDKs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants