2013年2月7日 星期四

how to create and submit a cocoapod.

1. to create a new podspec file (to create MyPod.podspec for example)

     $ pod spec create MyPod

2. modify MyPod.podspec to fit your need.
3. link it before sumbit

     $ pod spec lint MyPod.podspec

4. submit to repository using follow spec.

quoted from URL:http://nsscreencast.com/episodes/28-creating-a-cocoapod


  1. Fork the repository at http://github.com/CocoaPods/Specs.git
  2. Add your podspec file to its own versioned folder
  3. Push to your fork
  4. Issue a Pull Request

5. if you want to put pod on your own repository. refer to following URL:

https://github.com/CocoaPods/CocoaPods/wiki/Sharing-pod-specifications-with-yourself-and-the-world

test APIs on CocoaPods as well, first one is SVProgressHUD

//https://github.com/samvermette/SVProgressHUD // Podfile platform :ios pod 'JSONKit', '~> 1.4' pod 'Reachability', '~> 3.1.0' pod 'InAppSettingsKit', '~> 1.0' pod 'AFNetworking', '~> 0.10.1' pod 'GDataXML-HTML', '~> 1.0.0' pod 'SVProgressHUD', '~> 0.9' // it can show image as well. //+ (void)showImage:(UIImage*)image status:(NSString*)string; // use 28x28 white pngs //SVProgressHUD in .h - (IBAction)show; - (IBAction)showWithStatus; - (IBAction)dismiss; - (IBAction)dismissSuccess; - (IBAction)dismissError; //SVProgressHUD in .m #import "SVProgressHUD.h" //@implementation KATDetailViewController //{ NSTimer *timer; //} #pragma mark - Show Methods Sample - (void)show { [SVProgressHUD show]; } - (void)showWithStatus { [SVProgressHUD showWithStatus:@"Doing Stuff"]; } static float progress = 0.0f; - (void)showWithProgress:(id)sender { progress = 0.0f; [SVProgressHUD showProgress:0 status:@"Loading"]; if (timer) { [timer invalidate]; } timer = [NSTimer scheduledTimerWithTimeInterval:0.3f target:self selector:@selector(setProgress) userInfo:nil repeats:YES]; } - (void)setProgress { progress+=0.1f; [SVProgressHUD showProgress:progress status:@"Loading"]; if(progress >= 1.0f) { [timer invalidate]; timer = nil; [self performSelector:@selector(dismiss) withObject:nil afterDelay:0.4f]; } } #pragma mark - Dismiss Methods Sample - (void)dismiss { [SVProgressHUD dismiss]; [timer invalidate]; } - (void)dismissSuccess { [SVProgressHUD showSuccessWithStatus:@"Great Success!"]; [timer invalidate]; } - (void)dismissError { [SVProgressHUD showErrorWithStatus:@"Failed with Error"]; [timer invalidate]; }

2013年1月26日 星期六

One API per Day for LinkedIn API running on iOS

Today, I'm going to test LinkedIn API on iOS based on their API website: http://developer.linkedin.com/

1. To get your API key from https://www.linkedin.com/secure/developer first.
2. Then download 

One API per Day to use WordKit APIs on iOS

WordKit iOS API is available for download in http://developer.wordnik.com/libraries/wordkit-ios-sdk

I used iOS package from Github https://github.com/wordnik/wordkit/tree/master/frameworks/objective-c

This is one of the API in programmableWeb listing. (http://www.programmableweb.com/api/wordnik)

I like use its petstore to test API results. (http://petstore.swagger.wordnik.com/)


--------------
The is the procedure to get the demo running on your iOS app.

1. To get your API key, sign up on this website (http://developer.wordnik.com/) , and you will receive a API Key by email.

2. And download WordKit from Github (https://github.com/wordnik/wordkit), install it dmg on your mac (actually it's just uzip the files, you need to copy framework to your app in Xcode later on).

3. The demo code is under wordkit/frameworks/objective-c/examples/ios, named WNDemoApp. Go that directory and run in Xcode (open *proj).

4. search "YOUR_API_KEY" and replace it with your API key got from developer.wordnik by email.

5. Then run your project. (You may got some warnings and errors.)



(Thanks for help from Erin McKean in https://groups.google.com/forum/?fromgroups=#!topic/wordnik-api/a50xFW52kQQ to fix the problems.)
--------------
1. I got some problem when run it's demo code. (in wordkit/frameworks/objective-c/examples/ios/WNDemoApp directory). But it can resolve with some following steps.

a. add Wordnik.framework and WordnikUI.framework to the demo project.
b. change all files with

#import  <Wordnik/WNAdditions.h>

to

#import "WNAdditions.h"

If it still not working, see this from github

https://github.com/wordnik/wordkit/commit/ec3deb2e509d44a5fcda7e5ecac6bc9573ea99a8

c. as in URL above

you can add a file NSAddition.h to this project with source code as follows

// // WNAdditions.h // WNDemoApp // // Created by Tony Tam on 3/15/11. // Copyright 2011 wordnik. All rights reserved. // #import /** * @ingroup additions_foundation * * Release the provided object and set its pointer value to nil. * * @param obj Object pointer to release and set to nil. */ #define WNNilRelease(obj) {\ [obj release]; \ obj = nil; \ } @interface NSArray (WNAdditions) - (NSArray *)wn_map:(id (^)(id obj))block; @end

To get rid off all compiler warnings.

-------------
demo (I got audio file for the word "Apple")




-----------
for streaming over websocket

refer to (http://blog.wordnik.com/introducing-swaggersocket-a-rest-over-websocket-protocol)

---------- Google groups forum for wordnik API
https://groups.google.com/forum/?fromgroups#!forum/wordnik-api

2013年1月25日 星期五

One API per Day Hands-on for iOS

Hope I can post a ProgrammableWeb (http://www.programmableweb.com/) listed API testing example for iOS, iphone, ipad per day, starting from Jan. 25, 2013.

First API I'm going to try is from 500px, a photo sharing and hosting web service, API listed in programmableWeb is in URL:http://www.programmableweb.com/api/500px

Yesterday, I made 500px APIs run well on my iOS using XCode. Thanks for help from the example and library from github https://github.com/500px/500px-iOS-api (GEART!).

This is the result from following code: (source code on github https://github.com/mingder78/500pxAPITemplateForiOS)


#import <PXAPI/PXAPI.h>

#define kUserNameForAuthentication  @"your username"
#define kPasswordForAuthentication  @"your password"

#define kPXAPIConsumerKey       @"------J3k1XVrPTiTXaXTJJKH6qyshb3TyRhDu2"
#define kPXAPIConsumerSecret    @"------GA0R5MFkAGlc3eMfLeH8Jx7iuEuKzxZcECu"




    [PXRequest setConsumerKey:kPXAPIConsumerKey consumerSecret:kPXAPIConsumerSecret];
    
    PXAPIHelper *helper = [[PXAPIHelper alloc] initWithHost:nil
                                   consumerKey:kPXAPIConsumerKey
                                consumerSecret:kPXAPIConsumerSecret];



    NSDictionary *dictionary = [self jsonDictionaryForRequest:[helper urlRequestForSearchTerm:@"taipei101"] expectingResponseCode:200];

#ifdef DEBUG
    NSLog(@"%s|%@",__PRETTY_FUNCTION__,dictionary);
#endif



result:



2013-01-26 10:54:26.520 test1[5755:c07] -[AppDelegate application:didFinishLaunchingWithOptions:]|{
    "current_page" = 1;
    photos =     (
                {
            category = 13;
            "comments_count" = 0;
            "created_at" = "2013-01-24T01:53:31-05:00";
            description = "taipei 101 width sony rx100 hdr";
            "favorites_count" = 0;
            height = 800;
            id = 23992413;
            "image_url" =             (
                "http://pcdn.500px.net/23992413/651ede4931562e39a7a14c358255bc0576a44f73/3.jpg",
                "http://pcdn.500px.net/23992413/651ede4931562e39a7a14c358255bc0576a44f73/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/23992413/651ede4931562e39a7a14c358255bc0576a44f73/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/23992413/651ede4931562e39a7a14c358255bc0576a44f73/4.jpg";
                }
            );
            name = Untitled;
            nsfw = 0;
            privacy = 0;
            rating = 0;
            "times_viewed" = 8;
            user =             {
                city = "";
                country = "";
                firstname = "\U5e72\U6851";
                "followers_count" = 1;
                fullname = "\U5e72\U6851 \U6885";
                id = 2398123;
                lastname = "\U6885";
                "upgrade_status" = 2;
                username = minwt;
                "userpic_url" = "http://acdn.500px.net/2398123/44e462e2b911fa5955ff534ccda661a3daf39c86/1.jpg?1";
            };
            "votes_count" = 0;
            width = 1200;
        },
                {
            category = 13;
            "comments_count" = 1;
            "created_at" = "2013-01-24T01:53:31-05:00";
            description = "taipei 101 width sony rx100 hdr";
            "favorites_count" = 0;
            height = 800;
            id = 23992415;
            "image_url" =             (
                "http://pcdn.500px.net/23992415/a5c127104ec19a945f1db056da7b510c77193903/3.jpg",
                "http://pcdn.500px.net/23992415/a5c127104ec19a945f1db056da7b510c77193903/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/23992415/a5c127104ec19a945f1db056da7b510c77193903/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/23992415/a5c127104ec19a945f1db056da7b510c77193903/4.jpg";
                }
            );
            name = Untitled;
            nsfw = 0;
            privacy = 0;
            rating = "52.6";
            "times_viewed" = 18;
            user =             {
                city = "";
                country = "";
                firstname = "\U5e72\U6851";
                "followers_count" = 1;
                fullname = "\U5e72\U6851 \U6885";
                id = 2398123;
                lastname = "\U6885";
                "upgrade_status" = 2;
                username = minwt;
                "userpic_url" = "http://acdn.500px.net/2398123/44e462e2b911fa5955ff534ccda661a3daf39c86/1.jpg?1";
            };
            "votes_count" = 4;
            width = 1200;
        },
                {
            category = 13;
            "comments_count" = 1;
            "created_at" = "2013-01-24T01:53:31-05:00";
            description = "taipei 101 width sony rx100 hdr";
            "favorites_count" = 0;
            height = 900;
            id = 23992417;
            "image_url" =             (
                "http://pcdn.500px.net/23992417/cccf0c1a64be9b962eae49ba106951f27b8bfa37/3.jpg",
                "http://pcdn.500px.net/23992417/cccf0c1a64be9b962eae49ba106951f27b8bfa37/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/23992417/cccf0c1a64be9b962eae49ba106951f27b8bfa37/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/23992417/cccf0c1a64be9b962eae49ba106951f27b8bfa37/4.jpg";
                }
            );
            name = Untitled;
            nsfw = 0;
            privacy = 0;
            rating = "42.5";
            "times_viewed" = 16;
            user =             {
                city = "";
                country = "";
                firstname = "\U5e72\U6851";
                "followers_count" = 1;
                fullname = "\U5e72\U6851 \U6885";
                id = 2398123;
                lastname = "\U6885";
                "upgrade_status" = 2;
                username = minwt;
                "userpic_url" = "http://acdn.500px.net/2398123/44e462e2b911fa5955ff534ccda661a3daf39c86/1.jpg?1";
            };
            "votes_count" = 2;
            width = 1200;
        },
                {
            category = 13;
            "comments_count" = 1;
            "created_at" = "2013-01-24T01:53:31-05:00";
            description = "taipei 101 width sony rx100 hdr";
            "favorites_count" = 0;
            height = 900;
            id = 23992419;
            "image_url" =             (
                "http://pcdn.500px.net/23992419/88ff7529b3a1b2dea9fd3e30238ad05c8fbbbf72/3.jpg",
                "http://pcdn.500px.net/23992419/88ff7529b3a1b2dea9fd3e30238ad05c8fbbbf72/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/23992419/88ff7529b3a1b2dea9fd3e30238ad05c8fbbbf72/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/23992419/88ff7529b3a1b2dea9fd3e30238ad05c8fbbbf72/4.jpg";
                }
            );
            name = Untitled;
            nsfw = 0;
            privacy = 0;
            rating = 27;
            "times_viewed" = 10;
            user =             {
                city = "";
                country = "";
                firstname = "\U5e72\U6851";
                "followers_count" = 1;
                fullname = "\U5e72\U6851 \U6885";
                id = 2398123;
                lastname = "\U6885";
                "upgrade_status" = 2;
                username = minwt;
                "userpic_url" = "http://acdn.500px.net/2398123/44e462e2b911fa5955ff534ccda661a3daf39c86/1.jpg?1";
            };
            "votes_count" = 1;
            width = 1200;
        },
                {
            category = 13;
            "comments_count" = 14;
            "created_at" = "2013-01-24T01:53:31-05:00";
            description = "taipei 101 width sony rx100 hdr";
            "favorites_count" = 14;
            height = 800;
            id = 23992421;
            "image_url" =             (
                "http://pcdn.500px.net/23992421/dbc368bbfe3c89a7c6fb0692f72c6b33e2caeabf/3.jpg",
                "http://pcdn.500px.net/23992421/dbc368bbfe3c89a7c6fb0692f72c6b33e2caeabf/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/23992421/dbc368bbfe3c89a7c6fb0692f72c6b33e2caeabf/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/23992421/dbc368bbfe3c89a7c6fb0692f72c6b33e2caeabf/4.jpg";
                }
            );
            name = Untitled;
            nsfw = 0;
            privacy = 0;
            rating = "82.5";
            "times_viewed" = 89;
            user =             {
                city = "";
                country = "";
                firstname = "\U5e72\U6851";
                "followers_count" = 1;
                fullname = "\U5e72\U6851 \U6885";
                id = 2398123;
                lastname = "\U6885";
                "upgrade_status" = 2;
                username = minwt;
                "userpic_url" = "http://acdn.500px.net/2398123/44e462e2b911fa5955ff534ccda661a3daf39c86/1.jpg?1";
            };
            "votes_count" = 26;
            width = 1200;
        },
                {
            category = 8;
            "comments_count" = 1;
            "created_at" = "2013-01-19T08:58:33-05:00";
            description = "";
            "favorites_count" = 0;
            height = 3056;
            id = 23552819;
            "image_url" =             (
                "http://pcdn.500px.net/23552819/5916b77fc218fb862a7e3029e953e6b8148cb50c/3.jpg",
                "http://pcdn.500px.net/23552819/5916b77fc218fb862a7e3029e953e6b8148cb50c/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/23552819/5916b77fc218fb862a7e3029e953e6b8148cb50c/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/23552819/5916b77fc218fb862a7e3029e953e6b8148cb50c/4.jpg";
                }
            );
            name = "Taipei City";
            nsfw = 0;
            privacy = 0;
            rating = 0;
            "times_viewed" = 6;
            user =             {
                city = "Taipei City";
                country = "";
                firstname = David;
                "followers_count" = 4;
                fullname = "David Lin";
                id = 1939507;
                lastname = Lin;
                "upgrade_status" = 0;
                username = davidfotolife;
                "userpic_url" = "http://acdn.500px.net/1939507/c00a7f39988f56722aa1754e65a2720b27c20d50/1.jpg?1";
            };
            "votes_count" = 0;
            width = 4546;
        },
                {
            category = 9;
            "comments_count" = 0;
            "created_at" = "2012-12-17T10:57:16-05:00";
            description = "OLYMPUS DIGITAL CAMERA";
            "favorites_count" = 0;
            height = 4608;
            id = 20785689;
            "image_url" =             (
                "http://pcdn.500px.net/20785689/2d275a462fa8ef9afd335ad5667dc5234eb0deb1/3.jpg",
                "http://pcdn.500px.net/20785689/2d275a462fa8ef9afd335ad5667dc5234eb0deb1/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/20785689/2d275a462fa8ef9afd335ad5667dc5234eb0deb1/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/20785689/2d275a462fa8ef9afd335ad5667dc5234eb0deb1/4.jpg";
                }
            );
            name = TAIPEI101;
            nsfw = 0;
            privacy = 0;
            rating = 0;
            "times_viewed" = 15;
            user =             {
                city = "";
                country = "";
                firstname = Hajime;
                "followers_count" = 2;
                fullname = "Hajime Sambe";
                id = 1840757;
                lastname = Sambe;
                "upgrade_status" = 0;
                username = HajimeSambe;
                "userpic_url" = "http://acdn.500px.net/1840757/2bc2ffd7420f204f5a1d3a329b0062b06d5eaf58/1.jpg?2";
            };
            "votes_count" = 0;
            width = 3456;
        },
                {
            category = 10;
            "comments_count" = 0;
            "created_at" = "2012-12-11T12:41:26-05:00";
            description = "";
            "favorites_count" = 1;
            height = 3000;
            id = 20380285;
            "image_url" =             (
                "http://pcdn.500px.net/20380285/4d3fadf7aeac549979e1be518de8519be3561c24/3.jpg",
                "http://pcdn.500px.net/20380285/4d3fadf7aeac549979e1be518de8519be3561c24/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/20380285/4d3fadf7aeac549979e1be518de8519be3561c24/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/20380285/4d3fadf7aeac549979e1be518de8519be3561c24/4.jpg";
                }
            );
            name = "Taipei 101";
            nsfw = 0;
            privacy = 0;
            rating = 27;
            "times_viewed" = 7;
            user =             {
                city = "Palo Alto";
                country = USA;
                firstname = "";
                "followers_count" = 1;
                fullname = Magnifyco;
                id = 2076081;
                lastname = "";
                "upgrade_status" = 2;
                username = Magnifyco;
                "userpic_url" = "http://acdn.500px.net/2076081/2e39742a2eda4de039aabe856ec8f5b3cea56cb9/1.jpg?2";
            };
            "votes_count" = 0;
            width = 2100;
        },
                {
            category = 27;
            "comments_count" = 2;
            "created_at" = "2012-12-10T05:57:22-05:00";
            description = "Still jet lagging after my trip to Taiwan I got up bright and early and found beautiful Taipei 101 dressed in this nice yellow tinted light. It was my first shot in Taiwan and I think it's quite a nice one.";
            "favorites_count" = 2;
            height = 3168;
            id = 20282693;
            "image_url" =             (
                "http://pcdn.500px.net/20282693/98b0476749bd91c79131f076fb0f48b8d5cb6a66/3.jpg",
                "http://pcdn.500px.net/20282693/98b0476749bd91c79131f076fb0f48b8d5cb6a66/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/20282693/98b0476749bd91c79131f076fb0f48b8d5cb6a66/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/20282693/98b0476749bd91c79131f076fb0f48b8d5cb6a66/4.jpg";
                }
            );
            name = "Sunrise in Taipei";
            nsfw = 0;
            privacy = 0;
            rating = "31.6";
            "times_viewed" = 15;
            user =             {
                city = Melbourne;
                country = Australia;
                firstname = Juergen;
                "followers_count" = 6;
                fullname = "Juergen Kulmer";
                id = 1205829;
                lastname = Kulmer;
                "upgrade_status" = 1;
                username = Kulminho;
                "userpic_url" = "http://acdn.500px.net/1205829/7521442b3ca1236019aaec92a2adf921de681ceb/1.jpg?1";
            };
            "votes_count" = 1;
            width = 4224;
        },
                {
            category = 8;
            "comments_count" = 1;
            "created_at" = "2012-09-21T22:38:16-04:00";
            description = "";
            "favorites_count" = 1;
            height = 2727;
            id = 14345305;
            "image_url" =             (
                "http://pcdn.500px.net/14345305/90cbaac20be7c79c196590a9ac73fd72bf853b53/3.jpg",
                "http://pcdn.500px.net/14345305/90cbaac20be7c79c196590a9ac73fd72bf853b53/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/14345305/90cbaac20be7c79c196590a9ac73fd72bf853b53/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/14345305/90cbaac20be7c79c196590a9ac73fd72bf853b53/4.jpg";
                }
            );
            name = "Taipei 101 ~";
            nsfw = 0;
            privacy = 0;
            rating = "50.8";
            "times_viewed" = 23;
            user =             {
                city = Taipei;
                country = "";
                firstname = supra;
                "followers_count" = 0;
                fullname = "supra yang";
                id = 913741;
                lastname = yang;
                "upgrade_status" = 0;
                username = supra1;
                "userpic_url" = "http://acdn.500px.net/913741/fa7df309424ca51c38bde99c1117d7028c4622af/1.jpg?127";
            };
            "votes_count" = 1;
            width = 4098;
        },
                {
            category = 8;
            "comments_count" = 4;
            "created_at" = "2012-09-20T08:39:36-04:00";
            description = "Taiwan 
\nTaipei City 
\nTaipei101";
            "favorites_count" = 2;
            height = 2592;
            id = 14242307;
            "image_url" =             (
                "http://pcdn.500px.net/14242307/f5719d8c2c7f9da6badd2b3b742b0b77a807e748/3.jpg",
                "http://pcdn.500px.net/14242307/f5719d8c2c7f9da6badd2b3b742b0b77a807e748/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/14242307/f5719d8c2c7f9da6badd2b3b742b0b77a807e748/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/14242307/f5719d8c2c7f9da6badd2b3b742b0b77a807e748/4.jpg";
                }
            );
            name = "\U8c61\U5c71\U98a8\U60c5";
            nsfw = 0;
            privacy = 0;
            rating = "38.5";
            "times_viewed" = 109;
            user =             {
                city = Taipei;
                country = "R O C";
                firstname = "sullivan\U2122";
                "followers_count" = 437;
                fullname = "sullivan\U2122 \U6d69\U5b50";
                id = 75772;
                lastname = "\U6d69\U5b50";
                "upgrade_status" = 1;
                username = sullivan6006;
                "userpic_url" = "http://acdn.500px.net/75772/90b3372d410499ee0a3eaf2e8008a00c8f7a5c63/1.jpg?58";
            };
            "votes_count" = 7;
            width = 3888;
        },
                {
            category = 8;
            "comments_count" = 17;
            "created_at" = "2012-09-04T09:45:20-04:00";
            description = "Taiwan 
\nTaipei City 
\nTaipei101 ";
            "favorites_count" = 8;
            height = 3744;
            id = 13152715;
            "image_url" =             (
                "http://pcdn.500px.net/13152715/3787475243487d16e9bf61034502a3d917110f7d/3.jpg",
                "http://pcdn.500px.net/13152715/3787475243487d16e9bf61034502a3d917110f7d/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/13152715/3787475243487d16e9bf61034502a3d917110f7d/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/13152715/3787475243487d16e9bf61034502a3d917110f7d/4.jpg";
                }
            );
            name = "\U65e5\U843d\U7e7d\U7d1b";
            nsfw = 0;
            privacy = 0;
            rating = "45.2";
            "times_viewed" = 125;
            user =             {
                city = Taipei;
                country = "R O C";
                firstname = "sullivan\U2122";
                "followers_count" = 437;
                fullname = "sullivan\U2122 \U6d69\U5b50";
                id = 75772;
                lastname = "\U6d69\U5b50";
                "upgrade_status" = 1;
                username = sullivan6006;
                "userpic_url" = "http://acdn.500px.net/75772/90b3372d410499ee0a3eaf2e8008a00c8f7a5c63/1.jpg?58";
            };
            "votes_count" = 17;
            width = 5616;
        },
                {
            category = 9;
            "comments_count" = 1;
            "created_at" = "2012-09-01T11:19:02-04:00";
            description = "";
            "favorites_count" = 0;
            height = 3512;
            id = 12940325;
            "image_url" =             (
                "http://pcdn.500px.net/12940325/02513af5650bf2e4ed6054fb9516dfcb50ce7cc9/3.jpg",
                "http://pcdn.500px.net/12940325/02513af5650bf2e4ed6054fb9516dfcb50ce7cc9/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/12940325/02513af5650bf2e4ed6054fb9516dfcb50ce7cc9/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/12940325/02513af5650bf2e4ed6054fb9516dfcb50ce7cc9/4.jpg";
                }
            );
            name = "Taipei City";
            nsfw = 0;
            privacy = 0;
            rating = "44.8";
            "times_viewed" = 47;
            user =             {
                city = Taipei;
                country = Taiwan;
                firstname = SILENCE;
                "followers_count" = 8;
                fullname = "SILENCE Chen";
                id = 806316;
                lastname = Chen;
                "upgrade_status" = 0;
                username = silence226;
                "userpic_url" = "http://acdn.500px.net/806316/8faf2f4befd03c51f3cf4add581b2756ef7a65a9/1.jpg?1";
            };
            "votes_count" = 4;
            width = 4780;
        },
                {
            category = 5;
            "comments_count" = 0;
            "created_at" = "2012-08-29T23:17:18-04:00";
            description = "";
            "favorites_count" = 4;
            height = 2048;
            id = 12783087;
            "image_url" =             (
                "http://pcdn.500px.net/12783087/7d5d6868deb9f4edf6ebdb9e588505d92310e927/3.jpg",
                "http://pcdn.500px.net/12783087/7d5d6868deb9f4edf6ebdb9e588505d92310e927/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/12783087/7d5d6868deb9f4edf6ebdb9e588505d92310e927/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/12783087/7d5d6868deb9f4edf6ebdb9e588505d92310e927/4.jpg";
                }
            );
            name = "Heavy urban";
            nsfw = 0;
            privacy = 0;
            rating = "43.2";
            "times_viewed" = 31;
            user =             {
                city = Taipei;
                country = Taiwan;
                firstname = Lin;
                "followers_count" = 4;
                fullname = "Lin apura727";
                id = 452967;
                lastname = apura727;
                "upgrade_status" = 0;
                username = apura727;
                "userpic_url" = "http://acdn.500px.net/452967/4ef930d92d7d2d7dca74ae1e4cf1e2bf7b2e36c6/1.jpg?2";
            };
            "votes_count" = 5;
            width = 3088;
        },
                {
            category = 0;
            "comments_count" = 16;
            "created_at" = "2012-08-28T03:32:06-04:00";
            description = "Taiwan 
\nTaipei City 
\nTaipei101 ";
            "favorites_count" = 8;
            height = 3744;
            id = 12651633;
            "image_url" =             (
                "http://pcdn.500px.net/12651633/a2c696c81922084c81256600372b9f32e238b859/3.jpg",
                "http://pcdn.500px.net/12651633/a2c696c81922084c81256600372b9f32e238b859/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/12651633/a2c696c81922084c81256600372b9f32e238b859/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/12651633/a2c696c81922084c81256600372b9f32e238b859/4.jpg";
                }
            );
            name = "\U5f26\U6708\U5bc4\U60c5";
            nsfw = 0;
            privacy = 0;
            rating = "47.1";
            "times_viewed" = 139;
            user =             {
                city = Taipei;
                country = "R O C";
                firstname = "sullivan\U2122";
                "followers_count" = 437;
                fullname = "sullivan\U2122 \U6d69\U5b50";
                id = 75772;
                lastname = "\U6d69\U5b50";
                "upgrade_status" = 1;
                username = sullivan6006;
                "userpic_url" = "http://acdn.500px.net/75772/90b3372d410499ee0a3eaf2e8008a00c8f7a5c63/1.jpg?58";
            };
            "votes_count" = 18;
            width = 5616;
        },
                {
            category = 13;
            "comments_count" = 0;
            "created_at" = "2012-08-21T01:39:01-04:00";
            description = "";
            "favorites_count" = 0;
            height = 600;
            id = 12133751;
            "image_url" =             (
                "http://pcdn.500px.net/12133751/1b81c14908e7e64d7e47e6886cc7ed0b9fea6815/3.jpg",
                "http://pcdn.500px.net/12133751/1b81c14908e7e64d7e47e6886cc7ed0b9fea6815/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/12133751/1b81c14908e7e64d7e47e6886cc7ed0b9fea6815/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/12133751/1b81c14908e7e64d7e47e6886cc7ed0b9fea6815/4.jpg";
                }
            );
            name = "From Taipei101";
            nsfw = 0;
            privacy = 0;
            rating = 0;
            "times_viewed" = 21;
            user =             {
                city = TOKYO;
                country = "\U65e5\U672c";
                firstname = Yagi;
                "followers_count" = 7;
                fullname = "Yagi Yusuke";
                id = 93496;
                lastname = Yusuke;
                "upgrade_status" = 0;
                username = yajiji;
                "userpic_url" = "http://acdn.500px.net/93496/5730d00c9b0ea59f0e12aa4d7e4cae66811f592d/1.jpg?127";
            };
            "votes_count" = 0;
            width = 960;
        },
                {
            category = 9;
            "comments_count" = 3;
            "created_at" = "2012-08-14T10:50:46-04:00";
            description = "Night view of Taipei 101";
            "favorites_count" = 2;
            height = 2848;
            id = 11685997;
            "image_url" =             (
                "http://pcdn.500px.net/11685997/c9cbb0e55f96d4fb19009bc96bbfe322a5d92589/3.jpg",
                "http://pcdn.500px.net/11685997/c9cbb0e55f96d4fb19009bc96bbfe322a5d92589/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/11685997/c9cbb0e55f96d4fb19009bc96bbfe322a5d92589/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/11685997/c9cbb0e55f96d4fb19009bc96bbfe322a5d92589/4.jpg";
                }
            );
            name = "Taipei 101";
            nsfw = 0;
            privacy = 0;
            rating = "37.4";
            "times_viewed" = 72;
            user =             {
                city = Taipei;
                country = Taiwan;
                firstname = "\U5bb6\U9054";
                "followers_count" = 21;
                fullname = "\U5bb6\U9054 \U8a31";
                id = 664792;
                lastname = "\U8a31";
                "upgrade_status" = 0;
                username = hjge;
                "userpic_url" = "http://acdn.500px.net/664792/cdb50e2b6d1684c1adcf092c15d5bbef0b6b8f9c/1.jpg?127";
            };
            "votes_count" = 6;
            width = 4288;
        },
                {
            category = 18;
            "comments_count" = 1;
            "created_at" = "2012-08-14T03:37:02-04:00";
            description = "";
            "favorites_count" = 1;
            height = 654;
            id = 11666269;
            "image_url" =             (
                "http://pcdn.500px.net/11666269/d8c984c46a2b9bdd11918aabd51db05bdbc94f64/3.jpg",
                "http://pcdn.500px.net/11666269/d8c984c46a2b9bdd11918aabd51db05bdbc94f64/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/11666269/d8c984c46a2b9bdd11918aabd51db05bdbc94f64/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/11666269/d8c984c46a2b9bdd11918aabd51db05bdbc94f64/4.jpg";
                }
            );
            name = "local rain-Taipei 101";
            nsfw = 0;
            privacy = 0;
            rating = "47.8";
            "times_viewed" = 28;
            user =             {
                city = Tainan;
                country = Taiwan;
                firstname = Nastiti;
                "followers_count" = 2;
                fullname = "Nastiti Utami";
                id = 143003;
                lastname = Utami;
                "upgrade_status" = 0;
                username = NastitiUtami;
                "userpic_url" = "http://acdn.500px.net/143003/0d8b9b8694c72b4ce52ae20be7315deffe913079/1.jpg?127";
            };
            "votes_count" = 1;
            width = 900;
        },
                {
            category = 8;
            "comments_count" = 17;
            "created_at" = "2012-07-27T02:02:00-04:00";
            description = "";
            "favorites_count" = 13;
            height = 596;
            id = 10538027;
            "image_url" =             (
                "http://pcdn.500px.net/10538027/f152841762d4e6dabba62adb44cea50812067890/3.jpg",
                "http://pcdn.500px.net/10538027/f152841762d4e6dabba62adb44cea50812067890/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/10538027/f152841762d4e6dabba62adb44cea50812067890/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/10538027/f152841762d4e6dabba62adb44cea50812067890/4.jpg";
                }
            );
            name = Taipei;
            nsfw = 0;
            privacy = 0;
            rating = "47.1";
            "times_viewed" = 227;
            user =             {
                city = "<null>";
                country = "<null>";
                firstname = "\U660c\U54f2";
                "followers_count" = 3;
                fullname = "\U660c\U54f2 \U8b1d";
                id = 1064541;
                lastname = "\U8b1d";
                "upgrade_status" = 0;
                username = mbbdqmxukg;
                "userpic_url" = "/graphics/userpic.png";
            };
            "votes_count" = 29;
            width = 900;
        },
                {
            category = 0;
            "comments_count" = 1;
            "created_at" = "2012-07-26T08:54:55-04:00";
            description = taipei101;
            "favorites_count" = 1;
            height = 4272;
            id = 10493635;
            "image_url" =             (
                "http://pcdn.500px.net/10493635/00a41e10fd447f67a80e44ab0cb789240f2b1425/3.jpg",
                "http://pcdn.500px.net/10493635/00a41e10fd447f67a80e44ab0cb789240f2b1425/4.jpg"
            );
            images =             (
                                {
                    size = 3;
                    url = "http://pcdn.500px.net/10493635/00a41e10fd447f67a80e44ab0cb789240f2b1425/3.jpg";
                },
                                {
                    size = 4;
                    url = "http://pcdn.500px.net/10493635/00a41e10fd447f67a80e44ab0cb789240f2b1425/4.jpg";
                }
            );
            name = taipei101;
            nsfw = 0;
            privacy = 0;
            rating = "59.7";
            "times_viewed" = 41;
            user =             {
                city = "<null>";
                country = "<null>";
                firstname = "\U660c\U54f2";
                "followers_count" = 3;
                fullname = "\U660c\U54f2 \U8b1d";
                id = 1064541;
                lastname = "\U8b1d";
                "upgrade_status" = 0;
                username = mbbdqmxukg;
                "userpic_url" = "/graphics/userpic.png";
            };
            "votes_count" = 1;
            width = 2848;
        }
    );
    "total_items" = 43;
    "total_pages" = 3;
}