【整理】最近幾個月帶百岳休閒登山團的一些照片♪『玉山主峰・雪山主峰・嘉明湖/向陽山/三叉山』

圖片
平時主要帶團都是去爬玉山主峰,偶爾也會有雪山主峰嘉明湖的case,但是拍的照片其實都差不多,所以懶得每次的活動都發一篇文章作紀錄,就直接用一篇文章總結一下最近幾個月的帶團紀錄吧!

不論是台灣人、香港人、澳門人、大陸人,或是來自其他國家的山友,小弟特別珍惜每一次和大家爬山的機緣,在這裡由衷感謝每一位和我報名過的夥伴們!不同季節、不同天氣、帶著不同的心情上山,都能看見不一樣的景色,這就是山的魅力所在。

玉山主峰海拔高度3,952公尺,為台灣百岳之首,更是東北亞第一高峰,也是台灣的精神表徵,屬於玉山國家公園管轄範圍,玉山山塊因歐亞大陸板塊受菲律賓海板塊擠撞而隆起,主稜脈略呈十字形,南北長而東西短,十字之交點即為玉山主峰,主峰四周有東、南、西、北峰環繞,外圍還有前峰、小南山、南玉山、東小南山、鹿山與北北峰遙相呼應,宛如眾星拱月般,襯托出主峰的王者之尊,壯偉雄奇的山容、絕佳的展望和絢麗的日出景觀,吸引了無數的國內外登山客前來朝聖,一生中能登上玉山是很多台灣人的心願之一。



*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*
關於玉山登山的詳細資訊,請參考下文。
有興趣攀登台灣高山百岳的朋友,都可以和我們聯繫!

WECHAT:掃下面的二維碼
LINE:掃下面的二維碼

MESSENGER:用APP掃描下面圖片
E-MAIL:disneylab987@gmail.com

*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*





■活動日期:每天均可抽籤(平日、假日均可,但最晚請於"預計入園日的30天以前"報名,以便幫您辦理入園抽籤) ■攀登百岳:台灣人一生必爬一次的玉山主峰(海拔3,952m)
■路線說明:路徑清楚沒有危險,少許路段較難行走,需具備基本體能

Connect to the Foursquare API via OAuth in your Rails application

OAuth is an open authentication protocol that allows secure API communication without the necessity of continually passing a username and password with each request. The idea for OAuth was conceived in 2006 by a group of individuals working on the Twitter implementation of OpenID. 

After reviewing both OpenID and other existing industry practices, such as Amazon Web Services API and Flickr API, it was decided that a proposal should be written for a new open protocol for application authentication.

OAuth has been widely adopted among major web services. Twitter, not only implementing OAuth as its primary API authentication method, but using it as the basis for its “Sign in with Twitter” service. Today, you’ll also find the protocol used by Facebook, Google, Yahoo, LinkedIn, and many others.

Foursquare is a new and rapidly growing social utility whose potential for mash-ups with other applications is limited only by one’s own imagination. The Foursquare platform implements the OAuth 2.0 standard, so users can authorize applications to access Foursquare resources on their behalf without revealing their passwords or other credentials to those applications. The foursquare API gives you access to all of the data used by the foursquare mobile applications, and, in some cases, even more.



I have been experimenting with the Foursquare API for a few days now, and I wanted to show you how you can implement use Foursquare in your Rails application using OAuth 2.0 (This is a very simple Rails application that connects to the Foursquare API using Quimby [http://github.com/groupme/quimby]). It is working fine as I'm using Rails 2.3.8 on ruby 1.8.7 and it also work with Rails 3!

I'm going to just give you the concept for this post. If you have no prior experience with Ruby or you are new to Rails, as you read this post, don't get use these code directly, it will not work for your blank Rails application.

Below is a general overview for an OAuth connection: 
1.Send request to target website for token, with the server's client_id & secret_id 
2.Redirect user to authorize page with token (and callback url)
3.After user confirm, user will be redirect to the callback page with a access_token
4.Save the access_token, and free to call target server for user data.


You will need a Foursquare account to obtain your key and secret in the first place. Visit https://foursquare.com/oauth to register your Rails application and obtaining your API credentials, where you need to provide an app name (ex: Railscode), a website url (ex: http://localhost:3000) and a callback URL (ex: http://localhost:3000/fsq_callback).  It’s a free signup, and if you wish to work on the API I’m sure you’ve already had an interest in the application! After registration, you should see something like this:



Copy your Foursquare App Client ID & Client Secret and paste it into your environment.rb or maybe config_foursquare.yml. The callback URL is the location your users will be sent after they authenticate on Foursquare’s site.

Next run rails script to generate a migration file:
$ script/generate migration add_foursquare_to_users



And we have to install the following ruby gems:



We need to be able to intercept this redirect, capture the token, and store it so we can begin interacting with Foursquare. Add the following method to the application controller:



Next we need to write a callback method in the fsq_oauth_controller.rb. Once we’ve retrieved the code from the Foursquare server, we can exchange it for an access token.



Add the following line in the routes.rb:



In order to retrieve an access token, we need to redirect the user to the Foursquare authorization URL (More info can be found on https://developer.foursquare.com/docs/oauth.html). we can add the foursquare connect button in the view page:



When pressing the login button, you can login with your Foursquare credentials!


Now that the app has an access token, we can launch our main activity and start interacting with Foursquare.

This has been a basic look into getting started with Foursquare’s API. OAuth is a very powerful open protocol for connecting into larger social communities. It offers the most secure solutions for both users and web masters. The Foursquare Developers center is an amazing tool for newbies.Scour the resources and look up and function calls you may be interested in working with. Similarly the official OAuth website has some terrific readings outlining the purpose and practical solutions for the protocol.

熱門文章

[轉載] 洛克菲勒寫給兒子的38封信(全文)

【台灣百岳】2017, Sep 23~25 大壩群峰(大霸尖山、小霸尖山、加利山、伊澤山)3泊3日輕鬆行♪

日本の登山の歷史

【美國加州 Yosemite National Park】優勝美地國家公園健行之一.迷人的秋日美景。飽覽山谷與Vernal Falls、Nevada Falls兩大瀑布

[平成26年8月6日~8日]夏休み山旅、初めての南アルプス!白峰三山2泊3日テント泊縦走【北岳・間ノ岳・農鳥岳】

【整理】最近幾個月帶百岳休閒登山團的一些照片♪『玉山主峰・雪山主峰・嘉明湖/向陽山/三叉山』

[平成28年9月11~16日]生命の息吹と太古の大自然に魅せられる、世界遺産屋久島2泊3日テント担いで縦走♪(淀川登山口~白谷雲水峡)

文章列表

聯絡我

名稱

以電子郵件傳送 *

訊息 *