codeminders / imageshackapi Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/imageshackapi
Automatically exported from code.google.com/p/imageshackapi
What steps will reproduce the problem?
1. open: http://www.yfrog.com/api/oembed?url=http://yfrog.com/el3fxz
I get:
{"version":"1.0","provider_name":"yFrog","provider_url":"http:\/\/yfrog.com","th
umbnail_url":"http:\/\/yfrog.com\/el3fxz:small","width":480,"height":360,"type":
"video","html":"http:\/\/yfrog.com\/el3fxz:embed"}
Response doesn't have valid embed code, see value of property 'html'.
Original issue reported on code.google.com by [email protected]
on 28 Oct 2011 at 1:42
Created an iPhone app with ImageShack support to upload images. I just released
the app to the public and it seems "some, not all" images users upload are
added to the developers account.
This seems to be a privacy issue, no images created and uploaded should be
placed in the dev account.
This app is created in obj c and the "username, Password" is optional during
multiform upload data.
Original issue reported on code.google.com by [email protected]
on 24 Jul 2012 at 2:14
What steps will reproduce the problem?
1. use any kind of twitter app like twitter for iphone, twitbird
2. take a video and upload to yfrog server
(like one-two-three-four sound with 1~4 finger action)
3. play the video after uploading completed
4. the video doesn't sync. between picture and sound.
What is the expected output? What do you see instead?
-> the video played well before two weeks ago but it doesn't synchronized
recently. not at all.
What version of the product are you using? On what operating system?
-> iPhone
Please provide any additional information below.
-> We are developing twitter app for iphone and we've integrated with yfrog. It
performed well but it became very slow and sync-problem recently.
Please check if there is any problem.
Original issue reported on code.google.com by [email protected]
on 18 Oct 2010 at 2:38
What steps will reproduce the problem?
1. curl -v "http://www.yfrog.com/api/oembed?url=http://yfrog.com/2pswonj"
What is the expected output? What do you see instead?
oEmbed has a required "type" parameter in the response. This is missing.
The full response I get is
{"version":"1.0","provider_name":"yFrog","provider_url":"http:\/\/yfrog.com","th
umbnail_url":"http:\/\/yfrog.com\/2pswonj:small"}
This is the example URL given in your
http://code.google.com/p/imageshackapi/wiki/OEMBEDSupport page. Note. The
response is also missing the width, height, author_url, title and url that are
shown in the example output
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Oct 2012 at 6:44
I'd like to propose a way to support OAuth in picpost API calls, e.g. on
yfrog.com and img.ly, however for this to work the site itself has to
support OAuth (so twitpic has to start OAuth support for this to work)
(this idea started as a reply to my question to the img.ly guys about
this, so it is worded as a reply)
I have looked a bit further into the problem and I think that chaining
OAuth is not necessary to support using the API with OAuth.
For this to work, you will have to exchange the password for the API call
with an oauth_access_token that the user has previously created by logging
into twitter (assume that the parameter is called oauth when the user
wants to use OAuth and password when he wants to use a password).
The API web server has the respective secret so that it can access twitter
with the oauth protocol and the access token by itself is useless on any
other site that doesn't know the secrets.
This will even work for third party apps that register their own
application with twitter, however this requires the consumer key secret to
be stored on your server as well, otherwise you cannot create a signed
request to twitter.
I have written a sample application as a POC, if anybody is interested, I
can put it up on google code.
Original issue reported on code.google.com by [email protected]
on 15 Sep 2009 at 11:50
Hello,
is there any way to remotely delete images uploaded by upload_api.php?
This may be helpful as some users delete images and I am unable to delete them
from imageshack as well.
There should be a link for removing the image in the xml response of this API...
Thanks,
M.
Original issue reported on code.google.com by [email protected]
on 14 Oct 2011 at 11:50
What steps will reproduce the problem?
1. Using java HttpCore 4.0.1
2.
3.
What is the expected output? What do you see instead?
I expect xml describing the successful upload.
What version of the product are you using? On what operating system?
Using latest api constructs to form post on Windows 7 java 64bit.
Please provide any additional information below.
I've been successful in creating an html page that submits locally with no
problem but when I use java, I get this output:
<links>
<error id="wrong_file_type">Wrong file type detected for file dog.jpg:</error>
</links>
This is my java code if anyone can understand it:
HttpClient httpclient = new DefaultHttpClient();
HttpPost post = new HttpPost("http://www.imageshack.us/upload_api.php");
MultipartEntity entity = new MultipartEntity( HttpMultipartMode.BROWSER_COMPATIBLE, null, null);
FormBodyPart fbp = new FormBodyPart("fileupload", new FileBody(new File("F:\\temp\\dog.jpg"), "image/jpeg"));
entity.addPart(fbp);
FormBodyPart fbp2 = new FormBodyPart("key", new StringBody("3ACEIKNUede87aa4a0665d36868d7ba7bfc63101", MIME.DEFAULT_CHARSET));
entity.addPart(fbp2);
post.setEntity(entity);
post.addHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
post.addHeader("Accept-Language", "en-us,en;q=0.5");
//post.addHeader("Accept-Encoding", "gzip,deflate");
post.addHeader("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
post.addHeader("Keep-Alive", "115");
post.addHeader("Connection", "keep-alive");
System.out.println(post.getRequestLine());
HeaderIterator hiter = post.headerIterator();
while(hiter.hasNext()) {
System.out.println(hiter.next());
}
System.out.println(entity.getContentEncoding());
System.out.println(entity.getContentType());
System.out.println(entity.getContentLength() + "");
try {
entity.writeTo(System.out);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
//System.out.println(fbp.getHeader());
//System.out.println(fbp2.getHeader());
try {
HttpResponse httpresponse = httpclient.execute( post );
for(int i = 0; i < httpresponse.getAllHeaders().length; i++) {
org.apache.http.Header hd = httpresponse.getAllHeaders()[i];
//System.out.println(hd);
}
String response = EntityUtils.toString( httpresponse.getEntity(), "UTF-8" );
HttpEntity resEntity = httpresponse.getEntity();
resEntity.consumeContent();
System.out.println(response);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
//httpclient.getConnectionManager().shutdown();
}
I guess I want to understand what that error means so I can figure out what to
do on the java end. Been spinning my wheels trying this and that but to no
avail.
Thanks,
Minh
Original issue reported on code.google.com by [email protected]
on 3 Jul 2010 at 6:39
Attachments:
Hi. i used ImageShackUploader and modified upload method.
instead of cookie i used username and password to add image to account
$params[] = new stringpart('key', $this->developer_key);
$params[] = new stringpart('a_username', '[email protected]');
$params[] = new stringpart('a_password', 'pass');
Image was uploaded successfull, but account images list is empty. How to fix?
Original issue reported on code.google.com by [email protected]
on 1 Sep 2010 at 9:10
Per the wiki here: http://code.google.com/p/imageshackapi/wiki/ImageshackAPI
I should be able to do a POST or GET to
http://reg.ImageShack.us/setlogin.php to determine if a user is registered
or not. I can successfully make a GET request and get a proper response
with XML content. If I make a POST request to the same location using the
same parameters, I get a 200 response code but the content is always empty.
I would expect to get the same content back from both request types.
Original issue reported on code.google.com by travis.illig
on 15 Dec 2009 at 12:36
What steps will reproduce the problem?
1. Post Data at image api-url with a_username and a_password as data
What is the expected output? What do you see instead?
I expected to see the data in my profile .. unfortunately it won't show up
but the links I get are still working :/
Original issue reported on code.google.com by [email protected]
on 24 Jul 2009 at 9:45
how i can delete a image from imageshack using the api?
Original issue reported on code.google.com by [email protected]
on 11 Jan 2013 at 1:03
Could you please update the http://www.yfrog.com/crossdomain.xml, so that the
allow-access-from element has a secure="false" attribute. This will allow
flash to access the api under SSL, when embedded in an non-ssl page.
<allow-access-from domain="*" secure="false" />
Original issue reported on code.google.com by emlyn%[email protected]
on 7 Jul 2010 at 5:33
Hello,
Here a simple code to access REST api from imageshack, but I have always the
same response:
{"success":true,"process_time":57,"result":{"max_filesize":25600000,"space_limit
":52428800,"space_used":1,"space_left":5242880,"passed":0,"failed":0,"total":0,"
images":[]}}
Here my code:
WebResource resourceUpload = client.resource("http://api.imageshack.us/v1/images");
ObjectMapper mapper = new ObjectMapper();
//LOGIN
try {
LoginDto loginDto = loginToImageshack();
// UPLOAD
String response = resourceUpload
.queryParam("key", "****")
.queryParam("url", "http://url_to_image")
.queryParam("auth_token", loginDto.getResult().getAuth_token())
.queryParam("format", "json")
.accept(MediaType.APPLICATION_JSON)
.header("Content-Type", "multipart/form-data")
.post(String.class);
System.out.println(response);
do you have an idea ?
Thanks for your response
Original issue reported on code.google.com by [email protected]
on 24 Feb 2014 at 8:29
I am coding a new website and I am a beginner and trying to locate a photo
uploading, viewing, rating plugin from a free provider.
My site is going to specialize in users uploading photos they take in and
around Wrigleyville. See base site at www.wrigleyvillewomen.com
Having the ability to do this via ImageShack would be great. Do you currently
have a method of achieving this?
Perhaps if I signup for an account you could provide me with a customized email
address and/or phone number that my users could send a photo via sms and would
be displayed on top of the ImageShack photo viewer on my site. There would
also have to be some type of interface to upload a photo one at a time.
The photoviewer would need to allow all images to be sorted according to date,
year.
The photo viewer would need to provide users with the ability to rate each
photo. The plugin would need to allow users copy the url, save the photo and or
forward via email or sms if that is an option.
Do you any coding that I could implement into my website that would accomplish
this? Any suggestions? I would be willing to help create it if you have pre
existing plugins that I could put together.
Sincerely,
Frank
www.wrigleyvillewomen.com
Original issue reported on code.google.com by [email protected]
on 2 Jun 2011 at 12:58
What is the expected output? What do you see instead?
expected "thumb_html":"<a
href='http://imageshack.us/photo/my-images/XXX/NAME.EXT/' target='_blank'><img
src='http://imgXXX.imageshack.us/imgXXX/YYYY/NAME.th.EXT' alt='Free Image
Hosting at www.ImageShack.us' border='0'/></a>'"
and "thumb_link":"http://imgXXX.imageshack.us/imgXXX/YYYY/NAME.th.EXT"
instead i see:
"thumb_link":"<a href='http://imageshack.us/photo/my-images/XXX/NAME.EXT/'
target='_blank'><img src='http://imgXXX.imageshack.us/imgXXX/YYYY/NAME.th.EXT'
alt='Free Image Hosting at www.ImageShack.us' border='0'/></a>'"
Original issue reported on code.google.com by [email protected]
on 30 Jan 2013 at 1:09
What steps will reproduce the problem?
1. Try to use AJAX to retrieve an XML file, eg
http://yfrog.com/api/xmlInfo?path=3ui95nj
2. Fail to retrieve it as the request hits the 301 direct and stops
What is the expected output? What do you see instead?
I expect the XML feed but get an empty response, along with HTTP response
headers whose "Location" field yields the correct URL (eg
http://img138.imageshack.us/xmlinc.php?l=img138/4483/i95n.jpg&xml=newformat)
What version of the product are you using? On what operating system?
Current version, Linux.
Please provide any additional information below.
I've tried this using jQuery's AJAX tools and 'traditional' AJAX too - same
result.
Original issue reported on code.google.com by [email protected]
on 26 Aug 2010 at 2:29
What steps will reproduce the problem?
1. trying to send my multi-part data into a socket to the api
What is the expected output? What do you see instead?
a working upload :)
i'm sendint that in a socket to imageshack api:
POST /upload_api.php HTTP/1.1
Host: www.imageshack.us
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:0.8) Gecko/20100101 Firefox/8.0
Accept: application/xml
Connection: close
Content-Type:
multipart/form-data;charset=ISO-8859-1;boundary=98fa3d2d83ab917526207bd1d4d9b95c
Content-Length: 127777
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="key"
Content-Type: text/html
[HERE MY KEY (i mask)]
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="fileupload"; filename="darksiders_2.jpg"
Content-Type: image/jpeg
[My file datas (binary)]
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="optsize"
Content-Type: text/html
resample
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="a_username"
Content-Type: text/html
[email protected]
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="a_password"
Content-Type: text/html
hacker
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="uploadtype"
Content-Type: text/html
0
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="public"
Content-Type: text/html
yes
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="url"
Content-Type: text/html
http://ImageShack.us/slideshow/index.php?url=http://static.flickr.com/39/8428323
0_4730c2ab58_b.jpg&title=snowman&action=transload
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="rembar"
Content-Type: text/html
1
--98fa3d2d83ab917526207bd1d4d9b95c
Content-Disposition: form-data; name="xml"
Content-Type: text/html
yes
--98fa3d2d83ab917526207bd1d4d9b95c--
but unfortunatly i get that:
HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Fri, 09 Mar 2012 17:26:24 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: close
X-Powered-By: PHP/5.2.9
8c
<links>
<error id="auth_error">You must provide a valid auth token or dev key. see
http://code.google.com/p/imageshackapi/</error>
</links>
0
and thats all, i checked, my key is the good (i just copy and past (no spaces
before and after)
(ps: what should i put in the "url" parameter, i mean, an existing url or
something else ?)
thanks for reading this^^
Original issue reported on code.google.com by hisoka2501
on 9 Mar 2012 at 5:36
I'm using such method to upload image via your XML API
public static void UploadImage(HttpPostedFileBase image)
{
var httpWReq =
(HttpWebRequest)WebRequest.Create("http://www.imageshack.us/upload_api.php");
httpWReq.Method = "POST";
httpWReq.ContentType = "multipart/form-data";
httpWReq.KeepAlive = true;
var stream = httpWReq.GetRequestStream();
var encoding = new UTF8Encoding();
var postData = "key=/*my key*/";
postData += "&fileupload=";
byte[] data = encoding.GetBytes(postData);
stream.Write(data, 0, data.Length);
var buffer = new byte[4096];
int bytesread;
while ((bytesread = image.InputStream.Read(buffer, 0, buffer.Length)) != 0)
{
stream.Write(buffer, 0, bytesread);
}
stream.Close();
var response = (HttpWebResponse)httpWReq.GetResponse();
string responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
}
but it gives me error "you must provide valid secret key". The problem is that
key is 100% valid. And when I change to
httpWReq.ContentType = "application/x-www-form-urlencoded";
there is no longer error with key, but there is error "no file or empty file
was uploaded".
Here's some sample code, how I use this method
[HttpPost]
public ActionResult SomeAction (SomeViewModel model)
{
//I take image uploaded by user and store it into imageshack
UploadeImage(model.Image);
RedirectToAction("Index");
}
So the question is: Are there any mistakes in this code or is there any more
descent approach to post image via this API?
Thanks in advance!
Original issue reported on code.google.com by [email protected]
on 6 Jan 2014 at 4:24
Hello, I have created a simple WebClient in C# that uploads images from a
URL to Imageshak. The problem Im having is that the processed images are
coming out incomplete with gray areas when there are pixels missing. I
POSTing the URL of the source, API Key and &optimage=1&optsize=320x320.
Sample of output is :
http://img693.imageshack.us/img693/679/jasonschwartzmanprotago.jpg
What am I missing here?
Original issue reported on code.google.com by [email protected]
on 22 Jan 2010 at 11:38
There should be an option to delete or regenerate an API key.
Original issue reported on code.google.com by [email protected]
on 29 Aug 2011 at 3:11
Hello,
I am using YFrog UploadAndPost API for posting of my pictures and tweets. I
need to change the source, currently it's saying from Web, I want it to
show my twitter ID, how can I accomplish that ? Do I have to register my key ?
Any help regarding this issue will highly appreciated.
Original issue reported on code.google.com by [email protected]
on 24 Aug 2009 at 1:58
I uploaded a pic of myself in imageshac and then deleted it. But it still
shows ip in yfrog! And this was BEFORE i made a yfrog account. I seriously
need to delete that pic. Can someone PLEASE help?
Original issue reported on code.google.com by [email protected]
on 27 May 2010 at 11:12
While I uploading to ImageShack API animated gif's I got static images.
Why? Is that bad to allow user uppload animated images?
I hope you give this featue
Original issue reported on code.google.com by [email protected]
on 25 Feb 2012 at 2:23
What steps will reproduce the problem?
1. create an application/web page to send images to ImageShack
2. send image with wrong password
send image(using API) with correct username, but with wrong passowrd this
images is save to username account, expect an authentication error message.
Original issue reported on code.google.com by [email protected]
on 31 Dec 2012 at 2:44
What steps will reproduce the problem?
1. run the code I have provided below
What is the expected output? What do you see instead?
I expect a standard return from the ImageshackAPI instead I recieve that the
connection have been refused. I presume this is due to me not knowing what type
the file should be in when I upload.
Code:
public String ImageShack (String imageDir, String myKey) {
//set file
BufferedImage image = null;
File file = new File(imageDir);
//Set namevalue pairs
List<NameValuePair> params = new ArrayList<NameValuePair>();
try
{
image = ImageIO.read(file);
ByteArrayOutputStream byteArray = new ByteArrayOutputStream();
ImageIO.write(image, "png", byteArray);
byteArray.flush();
//byte[] byteImage = byteArray.toByteArray();
Base64 base = new Base64(false);
String dataImage = base.encodeAsString(byteArray.toByteArray());
byteArray.close();
dataImage = java.net.URLEncoder.encode(dataImage, "ISO-8859-1");
//Assign name valued pars
params.add(new BasicNameValuePair("key", myKey));
params.add(new BasicNameValuePair("fileupload", dataImage));
params.add(new BasicNameValuePair("format", "json"));
//Create HTTPClient and Client
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://www.imageshack.us/upload_api.php");
//set entities
httpPost.setEntity(new UrlEncodedFormEntity(params));
//Execute & get response
HttpResponse response = httpClient.execute(httpPost);
return response.toString();
}
catch(Exception e)
{
return "Error: " + e.getMessage();
}
}
Original issue reported on code.google.com by [email protected]
on 18 Jan 2013 at 12:50
What steps will reproduce the problem?
1. Create a multipart/form-data request
2. Set the mimepart according to the specification
3. Set the Content-Transfer-Encoding: base64
4. Post the data in base64 format
What is the expected output? What do you see instead?
The expected output will be something different than a blank page
What version of the product are you using? On what operating system?
Using google chrome the http://www.imageshack.us/upload_api.php url
Please provide any additional information below.
below the javascript method to create the xhr request with a base64 data. The
dataUrl param comes from canvas.toDataUrl('image/jpeg') or
canvas.toDataUrl('image/png')
var xhr = new XMLHttpRequest();
var boundaryString = '------------------------------';
xhr.open('POST','http://www.imageshack.us/upload_api.php');
//xhr.open('POST','http://localhost:8080/Upload/');
xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary="+boundaryString);
xhr.onreadystatechange = function()
{
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status <= 200) || xhr.status == 304) {
if (xhr.responseText != "") {
alert(xhr.responseText); // display response.
}
}
};
}
dataUrl = dataUrl.substr(dataUrl.indexOf("base64,",0)+7);
var cr = "\r\n";
var boundary = "--"+ boundaryString;
var body = boundary + cr;
body+="Content-Disposition: form-data; name=\"key\""+cr+cr;
body+="key"+cr;
body+=boundary+cr;
body+="Content-Disposition: form-data; name=\"fileupload\"; filename=\"gprFoto.jpeg\""+cr;
body+="Content-Type: image/jpeg"+cr;
body+="Content-Transfer-Encoding: base64"+cr+cr
body+=dataUrl+ cr;
body+=boundary+"--"+cr;
xhr.send(body);
Original issue reported on code.google.com by [email protected]
on 23 Jan 2011 at 3:46
While using yfrog's obj-c sample code I managed to upload a photo.
However, it seems to randomly return the invalid username/password. I am
using the same code with the same credentials. Any ideas?
Original issue reported on code.google.com by [email protected]
on 16 Oct 2009 at 2:53
hi i am using the imageshack api (xml) and i get an error when i try to
upload png and bmp files
the error i get it:
wrong file type :application/octet-stream
i dont know why cause gif and jpeg are ok..
i am using it in PHP via cURL
$data['key'] = API_KEY;
$data['public'] = "yes";
$data['xml'] = "yes";
$data['fileupload'] = '@'.$dest;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'http://www.imageshack.us/upload_api.php');
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 600);
/*curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);*/
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
$result = curl_exec($curl);
curl_close($curl);
Original issue reported on code.google.com by [email protected]
on 30 Sep 2009 at 3:46
uploadAndPost API call with russian/intl text cause 2003 error or curl
timeout error without any valid xml reply.
the code to reproduce:
$postfields = array();
$postfields['username'] = $username;
$postfields['password'] = $password;
$postfields['message'] = $message;
$postfields['media'] = '@'.$localfn;
$postfields['key'] = '02-my-dev-key-8e6ae6c';
$method = 'http://yfrog.com/api/uploadAndPost';
$curl = curl_init();
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl, CURLOPT_TIMEOUT, 25);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $method);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postfields);
$curlresult = curl_exec($curl);
curl_close($curl);
//Parse XML responce
try
{
$rxml = new SimpleXMLElement($curlresult);
...
Original issue reported on code.google.com by [email protected]
on 30 Jul 2009 at 12:00
What steps will reproduce the problem?
1. Browse to http://img523.yfrog.com/i/y5h.jpg/
2. Observe error dialog "The Google Maps API server rejected..."
What is the expected output? What do you see instead?
Expected output is a Google Map. Instead I see an error dialog
What version of the product are you using? On what operating system?
Firefox 3.5.2
IE 8.0.6001.18702
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Aug 2009 at 7:26
Attachments:
hi all ,
i'm new in using APIs so i don't know how to use Imageshack API !
can any one help me ?
thanks alot
Original issue reported on code.google.com by [email protected]
on 12 Nov 2011 at 9:14
1)I have uploaded image to imageshack which has 180 dpi resolution
2)it gives message "Uploaded successfully"
3)but not creating thumbnail
4)also not returning url to access that uploaded image
Original issue reported on code.google.com by [email protected]
on 25 Jan 2012 at 11:24
Hi how can i know which is the API usage limit ?
Can you explain limits ?
Original issue reported on code.google.com by [email protected]
on 25 Jun 2013 at 7:21
As in the topic.
Original issue reported on code.google.com by [email protected]
on 21 Nov 2013 at 3:07
What steps will reproduce the problem?
1. When I am trying to create gallery using url with parameters: cookie, image
I get the error:
Unable to create new album file
2. If possible, please paste some examples with using cookie as a parameteer
for creating new gallery.
3. Does creation of gallery have to be created using GET method (only url) or
POST method (html form)?
What is the expected output? What do you see instead?
I see the error:
Unable to create new album file
What version of the product are you using? On what operating system?
I am using Firefox 5.0 or Internet Explorer 8.0. Windows XP SP3
Please provide any additional information below.
Please give me some working examples or It would be the nicest if you could
paste some PHP code when curl usage should be necessery.
Original issue reported on code.google.com by [email protected]
on 23 Jun 2011 at 10:10
I'm using the sample code projected in obj-c. Everything works fine except
I wanted to upload as private. So I added the following two lines
[postBody appendData:[@"Content-Disposition: form-data; name=\"public\"\r\n
\r\n" dataUsingEncoding:NSUTF8StringEncoding]];
[postBody appendData:[@'no"
dataUsingEncoding:NSUTF8StringEncoding]];
The API returned "wrong username or password" after the change. Is it a
problem from the server side?
Original issue reported on code.google.com by [email protected]
on 5 Oct 2009 at 6:21
What steps will reproduce the problem?
- upload image via SSL (https://www.imageshack.us/upload_api.php) <- NOTICE
HTTPS
- open https://www.imageshack.us/upload_api.php via FireFox or Chrome other
browser
What is the expected output? What do you see instead?
would expect connection through ssl. But get error
javax.net.ssl.SSLException: hostname in certificate didn't match:
<www.imageshack.us> != <yfrog.com> OR <www.yfrog.com> OR <yfrog.com>
What version of the product are you using? On what operating system?
Java 1.6.0 JDK + org.apache.http v4.1.2
Please provide any additional information below.
This certification problem is global on imageshack.us
greetings
Max
Original issue reported on code.google.com by [email protected]
on 12 Sep 2011 at 10:09
I am Using an HTTP client that used to work with the service and is still
working with other services. The data are sent to yfrog in multipart/form-data
and using Twitter Echo OAuth.
I get an HTTP error code 411 with this text in the response body "411 Length
Required". I added the proper Content-Length header in the request but it still
complains with the same issue.
The HTTP client is this one: https://github.com/levelup/Android-HttpClient
Original issue reported on code.google.com by [email protected]
on 21 Nov 2013 at 9:32
What steps will reproduce the problem?
1. Upload image from iPad using imageshack frog app.
2. successful
3. No images uploaded!
What is the expected output? What do you see instead?
I checked my images and nothing there.
What version of the product are you using? On what operating system?
I use imageshack uploader from the app shop.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 25 Sep 2011 at 9:52
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
<links><error id="transload_error">Failed to fetch data from remote URL
http://www.youm7.com/images/NewsPics/large/s820104171423.jpg for request from
img832</error></links>
What version of the product are you using? On what operating system?
latest version of firefox
Please provide any additional information below.
i'm using API on my php script and it stopped retrieve the links and when i try
the full URL directly it show :
<links><error id="transload_error">Failed to fetch data from remote URL
http://www.youm7.com/images/NewsPics/large/s820104171423.jpg for request from
img832</error></links>
Original issue reported on code.google.com by [email protected]
on 24 Sep 2012 at 4:40
I am using yFrog api to upload Images and Video to Twitter. It was working fine
with the application. Lastly I had uploaded the files to Twitter using yFrog
API is on Oct 8th. Recently when the application was testing,
I was unable to upload the files using yFrog API. Then I found the response
that I am getting from the yFrog server is as follows:
Error code : 2003 Failed to update the status.
Even the status is failed getting as failed, the response is getting on Success
event, not in Failure event.
I am not able to identify why it's happening. Is it due to any server side
issue or client side issue? I am more confused, since it was working fine
before.
Thanks in advance
Original issue reported on code.google.com by [email protected]
on 2 Nov 2012 at 2:51
Authentication went well, I get the auth_token. Then I am using this simple
code to upload an image:
<code>
public static void sendFile() throws FileNotFoundException {
String iFileName = "postcard_template.jpg";
String lineEnd = "\r\n";
String twoHyphens = "--";
String boundary = "*****";
String Tag = "fSnd";
fileInputStream = new FileInputStream(iFileName);
try {
// Open a HTTP connection to the URL
HttpURLConnection conn = (HttpURLConnection) new URL(
HTTP_UPLOAD_ROUTE_URL).openConnection();
// Allow Inputs
conn.setDoInput(true);
// Allow Outputs
conn.setDoOutput(true);
// Don't use a cached copy.
conn.setUseCaches(false);
// Use a post method.
conn.setRequestMethod("POST");
conn.setRequestProperty("Connection", "Keep-Alive");
conn.setRequestProperty("Content-Type",
"multipart/form-data;boundary=" + boundary);
DataOutputStream dos = new DataOutputStream(conn.getOutputStream());
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes("Content-Disposition: form-data; name=\"api_key\""
+ lineEnd);
dos.writeBytes(lineEnd);
dos.writeBytes(API_KEY);
dos.writeBytes(lineEnd);
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes("Content-Disposition: form-data; name=\"auth_token\""
+ lineEnd);
dos.writeBytes(lineEnd);
dos.writeBytes(AUTH_TOEKN);
dos.writeBytes(lineEnd);
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos.writeBytes("Content-Disposition: form-data; name=\"file\";filename=\""
+ iFileName + "\"" + lineEnd);
dos.writeBytes(lineEnd);
// create a buffer of maximum size
int bytesAvailable = fileInputStream.available();
int maxBufferSize = 1024;
int bufferSize = Math.min(bytesAvailable, maxBufferSize);
byte[] buffer = new byte[bufferSize];
// read file and write it into form...
int bytesRead = fileInputStream.read(buffer, 0, bufferSize);
while (bytesRead > 0) {
dos.write(buffer, 0, bufferSize);
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, maxBufferSize);
bytesRead = fileInputStream.read(buffer, 0, bufferSize);
}
dos.writeBytes(lineEnd);
dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);
// close streams
fileInputStream.close();
dos.flush();
InputStream is = conn.getInputStream();
// retrieve the response from server
int ch;
StringBuffer b = new StringBuffer();
while ((ch = is.read()) != -1) {
b.append((char) ch);
}
String s = b.toString();
dos.close();
} catch (MalformedURLException ex) {
}
catch (IOException ioe) {
}
}</code>
And I always get the same responce :
<code>
{"success":false,"process_time":372,"result":{"max_filesize":5242880,"space_limi
t":52428800,"space_used":359,"space_left":52428441,"passed":0,"failed":1,"total"
:1,"images":[]},"error":{"error_code":1,"error_message":"One or more file
uploads have
failed","error_info":["failed_uploads",{"postcard_template.jpg":{"error_code":1,
"error_message":"Internal error. Unable to upload the file. Please try
again.","error_info":{"Content-Type":"","filesize":20}}}]}}
</code>
THe last field "filesize" can vary.
Original issue reported on code.google.com by [email protected]
on 27 Oct 2013 at 10:54
What steps will reproduce the problem?
1. Send/POST informations to http://www.imageshack.us/upload_api.php
Value List:
'action' => 'transload',
'rembar' => 1
'key' => API_KEY,
'title' => 'File Title',
'a_username' => API_USER,
'a_password' => API_PASS,
'url' => 'File Location'
What is the expected output? What do you see instead?
1.) File get uploaded to imageshack [working]
2.) File should be under user's account. ie. when API_USER click's my images,
he should see the image that has been uploaded.
Original issue reported on code.google.com by [email protected]
on 18 Feb 2011 at 9:55
What steps will reproduce the problem?
1. use a form to post image data with upload_api.php
2. examine the returned xml
3. the yfrog_link element no longer contains a yfrog url
What is the expected output? What do you see instead?
We are expecting the xml links element to contain a yfrog_link element with a
yfrog url. Instead, we see the following.
<yfrog_link>http://img375.imageshack.us/i/55918317.jpg/</yfrog_link>
What version of the product are you using? On what operating system?
We are posting a form request to http://www.imageshack.us/upload_api.php using
an ios client.
Please provide any additional information below.
Hope the above is enough info. thanks.
Original issue reported on code.google.com by [email protected]
on 23 Dec 2010 at 2:09
What steps will reproduce the problem?
1. https://render.imageshack.us/upload_api.php doesn't work
2. http://render.imageshack.us/upload_api.php work but only xml.
What is the expected output? What do you see instead?
json output
What version of the product are you using? On what operating system?
iOS 6.1.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Mar 2013 at 7:11
Hi I would like to know if there is any way to get the exif data from the
images.
Thanks :D
Regards,
Mauro
Original issue reported on code.google.com by [email protected]
on 4 Oct 2010 at 9:29
My site automatic upload images, used API request with key
(http://www.imageshack.us/upload_api.php?key=0000&uploadtype=on&fileupload=0000&
url=0000&email=0000&MAX_FILE_SIZE=13145728&refer=&brand=&optsize=320x320&rembar=
1), it working fine at last time. But now, my site get error 8:
http://my.imageshack.us/registration/?error=8
How i can upload images?
Original issue reported on code.google.com by sergey.agutin
on 11 May 2012 at 9:22
What steps will reproduce the problem?
1. Call the api calls below under bad
2. Copy and paste the yfrog_thumb value into your browser (throws a 404)
Bad calls: 404 yfrog_thumb images returned by api:
http://yfrog.com/api/xmlInfo?path=6r6feb418c55ba3494e5318f3j
http://yfrog.com/api/xmlInfo?path=b61o8j
http://yfrog.com/api/xmlInfo?path=4plo5j
Good calls
http://yfrog.com/api/xmlInfo?path=0fhandbanner3entj
http://yfrog.com/api/xmlInfo?path=5kshoktwojeahj
http://yfrog.com/api/xmlInfo?path=1np1020818wj
What is the expected output? What do you see instead?
Expected: The thumbnail image appears.
Actual: 404
Addition all Question:
What is the difference between the thumb_link and yfrog_thumb attributes?
[email protected]
Original issue reported on code.google.com by [email protected]
on 13 May 2010 at 4:11
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.