Discussion Forums  >  Capturing Images, Uploading Data

Replies: 53    Views: 239

Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
06/11/12 12:39 PM (11 years ago)

Trying to use the image uploader

Anyone used this? I dont get why I cant get this to work. Tab bars - Download. The url from download tab created as the data url on a third tab, for uploaded images. Anywhere i'm going wrong?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 12:57 PM (11 years ago)
For your message. That app is built on 1.5 and uses email image which is connected to a Flickr account, that what you are aiming for?
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:01 PM (11 years ago)
Exactly that. Image uploader in one tab, gallery of uploaded images in another. Unsure how the 2 link? Many thanks.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:06 PM (11 years ago)
I always start by adding a '+' link in the top right if gallery and connect that to the image emailer screen. You try that yet? The tab connected to the email image screen should work a well, just drop your unique Flickr email into the settings for pageand you should be good to go.
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:10 PM (11 years ago)
Is the email address simply your flikr account email address?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:11 PM (11 years ago)
Not the email you sign up with, the unique one they provide.
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:12 PM (11 years ago)
Ah, ok, thanks. And what data url do you use in the gallery?
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:13 PM (11 years ago)
Sorry to be a pain, dont see a different email address either?!
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:17 PM (11 years ago)
You are going to insert you Flickr API key into the data URL and it will look something like this: http://api.flickr.com/services/rest/?method=flickr.people.getPublicPhotos&api_key=??????????????&user_id=???????@???&per_page=250&format=json
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:18 PM (11 years ago)
If you are logged into Flickr I think the email is located under settings or top right corner.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:18 PM (11 years ago)
Ps you ain't being a pain!
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:20 PM (11 years ago)
Just found the email address, thanks! I'll look for the APi now :-) Many thanks.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:21 PM (11 years ago)
Happy days! Off to pour more coffee, long day ahead.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 01:24 PM (11 years ago)
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:25 PM (11 years ago)
Screen data url
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 01:27 PM (11 years ago)
it says i have an app that i put up there and it gave me a key and a secret? Key: c125b5fda4ab0040413aa6596e716938 Secret: f22cd4292f195e6e
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:29 PM (11 years ago)
Arrrgh, cant find the api!!!
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:35 PM (11 years ago)
Do I have to apply for the API?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:35 PM (11 years ago)
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:37 PM (11 years ago)
Yip, you have to apply / set up API key. That then plugs into the data URL above at the first set of question marks and then your account ID at the second set of question marks. The ?????@N01 part.
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:38 PM (11 years ago)
Yeah, when you click on getpublicphotos link there is something about applying? Maybe i'm completely in the wrong place?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 01:38 PM (11 years ago)
im sorry your getting bombarded with questions Macapple. What exactly am i linking in the screen data url? my photostream?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:50 PM (11 years ago)
@Ceerup The screen data URL for your gallery links to the public photos team of your Flickr account. It uses the JSON URL above, replaced with your API and unique account ID of course. @Alex@TM Did you hit this page and click on Get API where it links in first paragraph?
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:52 PM (11 years ago)
Yeah got it, thanks. Just truing to sort the url!
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:53 PM (11 years ago)
Good man.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 01:53 PM (11 years ago)
macapple, where do i find my unique account ID at?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 01:58 PM (11 years ago)
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 01:59 PM (11 years ago)
Patience of a saint!!!
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:01 PM (11 years ago)
Not I!
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 02:12 PM (11 years ago)
Still isnt having it. I've pasted the id to the right part and the key into the bit where the first ???'s where. Doesnt work!
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:12 PM (11 years ago)
app keeps crashing when i click on image gallery... i entered what i had to add in the screen data url?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:16 PM (11 years ago)
Ok. So you have the URL above into the screen data URL and have added your key to first set of '?'s' and your account ID into the second set '????@n03' type thing? Then grabbed the latest config data, dropped into Xcode in the config.txt clean and build?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:19 PM (11 years ago)
ok i think i know the problem, the json is wrong, because i put it in jsonlint.org and it says invalid Parse error on line 1: jsonFlickrApi({ ^ Expecting '{', '['
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:21 PM (11 years ago)
It shouldn't be if you copied it from above. Try adding a picture to the Flickr photo stream via the browser first and see if that displays in your gallery screen. Maybe crashing due to no data / image being available to pull.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:26 PM (11 years ago)
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 02:27 PM (11 years ago)
Nope, I've missed that, what needs adding to Xcode?! England were on in the euros today and I've had a few beers [any excuse!]
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:29 PM (11 years ago)
its definitely the json, flickr is putting out invalid json keeps saying this Parse error on line 1: jsonFlickrApi({ ^ Expecting '{', '[' now if theres a way i can just fix this json than i can just put the json somewhere else and get the data from there right?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:35 PM (11 years ago)
@Alex@TM well aware of the match, watches both today. Decent result for England, important not to lose first game. You've made changes to the app config so you need to copy the config data and update the config.txt in Xcode, clean and build. @Ceerup Mine does the same, did you also do the above directed at @Alex@TM?
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/11/12 02:40 PM (11 years ago)
Makes complete sense, so as i'm using the buzztouch screen data url in another part of the app, I add this one to that line?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:42 PM (11 years ago)
does my pictures need to be in a gallery? cause i clicked on flickr gallery and it says You haven't created any galleries yet.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:45 PM (11 years ago)
@Alex@TM No, this URL - the Flickr Json above - goes in the gallery screen data URL that is going to show the Flickr photo stream. Don't mess with the data URL you mentioned for this. @Ceerup that data URL is just pulling from the photo stream, not an individual gallery, make sense?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:46 PM (11 years ago)
oh okay, so i was doing it right. its just the invalid json, which i dont know why
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:48 PM (11 years ago)
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:49 PM (11 years ago)
okay will do
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:50 PM (11 years ago)
Honestly, this is the exact setup I have, I'm going to be gone for next hour or two after 6pm EST but will be on laptop later.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/11/12 02:53 PM (11 years ago)
You are putting the Flickr data in the advanced properties data URL and not the image URL under regular image url properties, yes?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/11/12 02:54 PM (11 years ago)
correct, this is in the screen data url, not the image url also i am using self hosted 2.0 so things might be different also
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/12/12 03:49 AM (11 years ago)
Got this working in the end. Thanks very much to Macapple, massive patience and support. Not used flikr before and its not the most user friendly. Thanks again.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
06/12/12 03:50 AM (11 years ago)
Jackpot! You fancy posting the DM msg you sent me on here so @Ceerup can see the final change you made? Happy for you buddy. Nearly Friday!
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/12/12 04:28 AM (11 years ago)
Yeah, of course. Its still a bit unstable, i dont know if its my internet or flikr or what, loads fine on the simulator, sometimes fine on the device sometimes it times out. Not wishing friday to get here too soon as i'm off all week!!
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/12/12 04:29 AM (11 years ago)
@Ceerup I basically followed the documented steps, deleted the app, fresh install and it worked! No idea why it happens, |I had changed the config but it did so I'm happy! Hope it works for you too. All the best, Alex
 
Geo3d
Aspiring developer
Profile
Posts: 31
Reg: Apr 19, 2012
location unknow...
910
like
06/20/12 04:53 AM (11 years ago)
Has anyone got this to work for Android Buzztouch v2.0? I'm having no success after following this thread...
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/20/12 04:56 AM (11 years ago)
Sorry, used 1,5
 
Aaron636r
Aspiring developer
Profile
Posts: 246
Reg: Mar 08, 2011
California
3,160
like
07/03/12 01:22 PM (11 years ago)
Wow...this is totally stumping me for some reason. Cant seem to get this working on Android BT 1.5.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.