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

Documentation for Upload API #146

Closed
pavitran opened this issue Sep 2, 2017 · 34 comments
Closed

Documentation for Upload API #146

pavitran opened this issue Sep 2, 2017 · 34 comments

Comments

@pavitran
Copy link

pavitran commented Sep 2, 2017

I've just created an app on GIphy Dashboard, and got an API key. I've searched a lot but couldn't find any documentation on uploading GIFs to Giphy. Can anyone point me in the right direction.
Thanks in advance

@pavitran
Copy link
Author

pavitran commented Sep 2, 2017

I tried the below with the current API key,
curl -v -H 'Content-Type: multipart/form-data' -H 'Accept: application/json' -F "file=@giph.gif" http://upload.giphy.com/v1/gifs?api_key=api_key
but I'm getting

{"meta":{"status":401,"msg":"Unauthorized","error_code":"invalid_api_key","response_id":"59aa47cf65546543326d2cfc"}}

@dfinkler
Copy link
Contributor

dfinkler commented Sep 5, 2017

HI @pavitran we're working on updating the developer documentation with updated Upload specs. As soon as it's available we'll make an announcement - should be available soon!

@shwetachitlangia
Copy link

shwetachitlangia commented Sep 21, 2017

I got the same error. Please provide the documentation.
Why is the key addressed as invalid when it is actually valid.

@dfinkler
Copy link
Contributor

dfinkler commented Sep 27, 2017

@shwetachitlangia it's on its way! We'll be sure to update + close all open documentation request issues when the updated upload docs are live.

@davidseek
Copy link

news? :)

@dfinkler
Copy link
Contributor

@davidseek we're very close to rereleasing the upload API and should have updates very soon!

@dfinkler
Copy link
Contributor

quick update on this - we are working with a 3rd party developer to address a bug in a piece of software we use to help manage our infrastructure. Once this bug is addressed we will re-release the documentation and support public access to the upload api

@davidseek
Copy link

Alright. Waiting for it. Our project basically waits to be able to upload the GIFs now :)

@DavidNV
Copy link

DavidNV commented Nov 1, 2017

Hello @dfinkler Thank your for hard work. Could you gie heads up when the docs are released? Again, thank you.

@davidseek
Copy link

News?

@nickbullock
Copy link

Waiting for it :)

@dfinkler
Copy link
Contributor

We'll be sure to update this thread as soon as we have news!

@alaslipknot
Copy link

Any update ?
My app (mobile game) is still on "pending" and i can't find the Public Upload API key anywhere, thanks!

@xaphod
Copy link

xaphod commented Mar 4, 2018

Yo @dfinkler it's been some more months any update? I'd like to support publishing GIFs made by my app to Giphy.

@pladaria
Copy link

pladaria commented May 9, 2018

Any updates?

@Sixuan
Copy link

Sixuan commented May 9, 2018

Hey, sorry for the late response. This is available now here https://developers.giphy.com/docs/, and look for "upload API: Upload Endpoint" section.

@hippogamesunity
Copy link

hippogamesunity commented Aug 2, 2018

Hi! How should I use Upload API with Unity (C#)? Can't make it work(((
Docs don't say how to pass File params. Is it a path? Or it is a base64 encoded string? Or it is just a byte array converted to string?
image

@erikmf12
Copy link

@hippogamesunity Did you ever figure out how to do this?

@hippogamesunity
Copy link

@erikmf12 Still not. I've received production key, but still unable to upload GIF. Have no response from support team.

@hippogamesunity
Copy link

hippogamesunity commented Aug 17, 2018

@erikmf12
here is my working C# code

var form = new WWWForm();

form.AddField("api_key", apiKey);
form.AddField("username", "pixelstudio");
form.AddBinaryData("file", binary, fileName, "application/octet-stream");
form.AddField("tags", tags);

Download with WWWForm class (https://docs.unity3d.com/ScriptReference/WWWForm.html)

Note, you should specify API key twice, in WWWForm and in URL.

@erikmf12
Copy link

@hippogamesunity What type is your 'binary' variable? Is it a base64 encoded byte array?

@hippogamesunity
Copy link

hippogamesunity commented Aug 17, 2018 via email

@LanXiaoPang613
Copy link

Hi, i have try your code, but couldn't working , if possible, can you show your full code. such as Downloader.Download("https://upload.giphy.com/v1/gifs?api_key=" + apiKey, form, www => ...

@hippogamesunity
Copy link

hippogamesunity commented Sep 6, 2018 via email

@LanXiaoPang613
Copy link

Ok,i just want to know how the www=>...write, thx for your reply.

@hippogamesunity
Copy link

By the way, here is my asset with GIPHY upload example: https://www.assetstore.unity3d.com/#!/content/120039

@LanXiaoPang613
Copy link

Hi guys, can you tell me which class the downloader is ?

@hippogamesunity
Copy link

@LanXiaoPang613
Copy link

oh, thx, i have resolve it ,anyway, thank for your reply.

@LanXiaoPang613
Copy link

Hi guys, when i was httppost the url, its result is forbidden, did you meet this error?

@hippogamesunity
Copy link

@LanXiaoPang613

  • check "username"
  • check api_key in two places
  • you must have approved key (have to wait a few days in my case after approve)

@pierasg
Copy link

pierasg commented Sep 6, 2018

I see that some of you have gone through this successfully, still I want to share this quick solution I've found using NodeJS.

sharesolution

@mojpg
Copy link

mojpg commented Oct 17, 2018

@pierasg Can I add that code as an example to the documentation in order to close this issue?

@shwetaatgiphy
Copy link

Hey Everyone,

Looks like we have a couple potential solutions in this thread. Hopefully these have helped the community.
Please feel free to write in to developers@giphy.com if any of you still need help with this.

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

No branches or pull requests