mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixed icon for Photobucket
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2061 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
4be78dddd4
commit
9627e927fb
2 changed files with 17 additions and 6 deletions
|
@ -67,7 +67,7 @@ namespace GreenshotPhotobucketPlugin {
|
|||
oAuth.TokenSecret = config.PhotobucketTokenSecret;
|
||||
Dictionary<string ,string> parameters = new Dictionary<string, string>();
|
||||
// add album
|
||||
//parameters.Add("identifier", "Apex75/greenshot");
|
||||
parameters.Add("id", "Apex75");
|
||||
// add type
|
||||
parameters.Add("type", "base64");
|
||||
// Add image
|
||||
|
@ -78,10 +78,14 @@ namespace GreenshotPhotobucketPlugin {
|
|||
}
|
||||
// add filename
|
||||
if (filename != null) {
|
||||
//parameters.Add("filename", filename);
|
||||
parameters.Add("filename", filename);
|
||||
}
|
||||
try {
|
||||
responseString = oAuth.oAuthWebRequest(HTTPMethod.POST, "http://api.photobucket.com/album/greenshot/upload.xml", parameters, null, null);
|
||||
LOG.DebugFormat("Album info", oAuth.oAuthWebRequest(HTTPMethod.GET, "http://api.photobucket.com/album/Apex75", null, null, null));
|
||||
responseString = oAuth.oAuthWebRequest(HTTPMethod.POST, "http://api.photobucket.com/album/!/upload", parameters, null, null);
|
||||
} catch (Exception ex) {
|
||||
LOG.Error("Error uploading to Photobucket.", ex);
|
||||
throw ex;
|
||||
} finally {
|
||||
if (!string.IsNullOrEmpty(oAuth.Token)) {
|
||||
config.PhotobucketToken = oAuth.Token;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue