bit.ly ������ OAuth 2.0 ���������«��ġ����¹»����·�����������Ώ����ď�������ġ����¹\��\��������������������� - ���������������ď����я�����µ���½���

April 21, 2011

³\\\\¼ҏ\\\\¼\²
�������������䏢¡����Ï�����������\µ���¼\���\¹������ bit.ly »��������������� URL �����ҏ��»½������·�����ď��������������¼�����������я��������������̏����̏�������������¡�����������¡񏪪��½������������»½���²½���¹��������������������¡�@shiba_yu36 ���µ�����я�돫����� WebService::Bitly �����������я��«»�����𡯏��Ð���������ޏ�������ġ����¹½Ð�����������������������̏��������������¼������������»�ߏ��������������·�����ď�¡�

��������¡��­��������������¡��³������\���\���\������¼\���������»�����������������������������������������������������������������\���\���\��\������¼���������«���«�����������Ώ����ď�������¡�bit.ly ���������Ώ�����²������������̏������������я��������¹��������¡�

\ bit.ly Ώ

¼«�����¼«��ď�������� bit.ly \��\«\���\���\���������»�����𡯏��Ð bit.ly ������\���\���\���\­\���\�돢�������«½Ð���������������·�����������̏��������������¼������»�ߏ��������������·�����ď�¡�

������������������������¡����Ï�����������\µ���¼\���\¹���������̏�����¼��ԏ����������¹��������¡�����������������������ޏ��������������Ï�����\���\���\���\·���¼������¹���������\������¼\�����Ð���«�������������������������������������������¹��������¡�
����bit.ly ������ API \­���¼��¡ߏ��������«���������������������������ӏ��������폢�폢�폢�폢�폢¡����������������������������������̏����������ď�ď�ԏ�¡�
�돪؏�����������«���������������������������������ҏ����Ώ�����²������������������������ޏ������������������������������������������돢�������\���\������¼\������̏����������������Џ��������������������·���������������������¹��¡�

����������������𡯏����돢¡�bitly API Documentation �����ҏ����������я����������Ώ����ď�����
bitly currently supports the OAuth 2 draft specification.
�����������я�����½��Џ���������������������������¡����������Ï�������돫ҏ����� 9 ·�������½��䏢�«������ OAuth 2.0 ���Ð�ޏ�Џ��̏��������µ�����������ď�������������¡�
OAuth ������»�����𡯏��Ð��¡�web ���«������������\���\������¼���������ޏ�������¡�\������¼\�������� API \­���¼�����������я��«�����Џ������µ���»����������̏���ߏ��̏��������«�����������ď��������¹������������������¡��³���������������������叢���Ï���\������¼\�����µ�����я�����������»������������������¹�����������������������Ï�����»�ߏ����������ď������������·�����ď�¡�
��������������������������𡯏��Ð��¡�¼�����������¡��³���������ď����� bit.ly ������ URL �����ҏ��»½������µ���»��������������¡�Facebook ������¹¹���·¾��Ï����я����ҏ�����¹������¹������µ����½�����ҏ��������ޏ��������������·�����ď�����������¡���Twitter ������ OAuth (1.0) ���������·��¡񏩡�ޏ�����\���\������¼���������叢���Ï���»������������������¹���½�����Ï�¡�Facebook ������ OAuth (2.0) �����������я��������«��������¡����������������� bit.ly ������ OAuth ���������Ð�ޏ�Џ��µ���»��������������𡯏��Ð���������������«���������쏢¡ߏ��������¼�����я�������¡�·��⏢����\���\��������������ѡ돩����·�����������Ώ����ď�¡�


�����������̡ޏ�ď�����ď�ԏ��­��¡�


Facebook ������ OAuth ���Ð�ޏ�Џ����㏢����\���\��ď�����\���\���\���¾����������½���³�����������������������Ï��������«¼��؏��ޏ��������������������̏�¡�bit.ly ������ OAuth 2.0 ���������Ð�ޏ�Џ��·�����ď����������я�����\���\���\��\���\��������������������������叢���������я����������䏢�������·������������������������¡��«������������������¼������µ������¾��؏����ӏ��«������»������������������������·�����ď�¡�

���򏩡��䏢������¡��½�����я�����»�ߏ�����½Ð������������½��Џ��³�����Ï�����»�ߏ��������������¹��¡�




OAuth \��\��\������������̏����Џ��½������



�����ӏ��³�����������돢���� OAuth ������»��������Џ��¹������\��\��\��������ҏ��½���������·���������������������������������ޏ��������»�����я�������¡�

��������������¡�bit.ly ������ Facebook �����������я��«�������돫���������������¡�³«������¼��ԏ����Џ���\µ\���\������«�����������폢������������¡�\���\��폢�¼\������«���������������ޏ�����\��\��\��������ҏ��Ð������½Ð�����������ď����������������я��«���·���������»��������¡�

bitly API Documentation �������������������������������Ï�������¡�
To request OAuth access, e-mail [email protected] with your bitly username.
\������¼\�������������OAuth �����������������ď��������������¹��¡ߏ����������������졭������������·���������������������������������ޏ�������������¡����������������������ѡޏ�Џ�������������¡�

����������������𡯏����돢¡��³�����я�����\������¼\��������ҏ���������������������Ώ����ď������������¹��¡�
Subject: OAuth ������������������������

\���\���\���\������¼���µ�����я��³�����я�������������������¡�

������������������������²������¹���̏�����������������������\���\���\��\µ���¼\���\¹��������¡�Twitter �����Ώ����ď�����������\���\���\���\���\���\��я�����¾������»������ URL �����ҏ��»½������µ���»�����ď�������������¡�OAuth ������»��������������ď����������я�������������������¡�
OAuth \���\���\���\��\���\������������·���������Ð�����ď��·��������������������𡯏��������������������¹���«����

\������¼\�����¾������ "���叢�叢��" ���������¹��¡�

���������������·�����������쏢�������̏��������·���������¹��¡�

(�� �����������������\������¼\��������¡돪؏�����)
3/11 ���������³�����я�����\������¼\��������ҏ���������������ď�������¡��¹���돢����������»��ӏ��̏�������������𡯏��������³�����������ҡ���䏪���ԏ��·�����������������ď�������¡񏪴���»��ӏ�������������������������������������ď�����̏��­���������·��������������¡�²���¼��ҏ�����½Ð��Ð�����폢����¾��؏�������������������������¡�bit.ly ���̏����������Ï������������«�����쏪�¹���������³�����������ҏ�����������������������������������������¾��آ�·���������������������������������������������·���������������������·�����ď�¡�

��������¡񏪤�����������ď�����������«�돫������⡭���·�����������������¡�bit.ly ���«����������������»��ӏ����������ԏ��������������������������»�����������������������������������돢¡����돪��������䏪���ӏ��µ���������������·���������������������·��������¡�

½Ð��Ð�����폢��������²��ҏ��«������������ 3/28 ������������²��Џ�����������\������¼\��������ҏ�������������������·�����ď�¡�
Subject: OAuth ���Ð������\���\���\��\¹\���

��ď���돢Ï����������� bit.ly API �����������¼��ԏ�����

²������¹���̏�����������������������\���\���\��\µ���¼\���\¹��������¡�OAuth ������»��������Ï��³������������·��²������·���������������������¹��¡�
client_id ������ client_secret ������³��������������ӏ����������ҏ����졭������������·���������¹��¡�

���³����������������²������¹������\��\«\���\���\���¾��Ï����я��������¹:

bit.ly \������¼\�����¾: ���叢�叢��
bit.ly API \­���¼: X_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

µ¹���·�����������졭������������·���������¹��¡�

(�� �����������������\������¼\��������¡돪؏�����)
���ӏ��³�����я����������������䏪���ӏ��µ�����������������������я�������¡��������·���«���·������ bit.ly ���������������¼��ԏ���\���\������������������·�������������«����������������¡ߏ����������я�����µ��������������������������������������ď�����������¡�����²��я����������������������������������⏪�«���������·�����������Ώ��������·�����ď�¡�

���·���«���·���������̏����� 10 �����䏢���叢����·Ð²������·������������\���\¹���̏��������������돪��������䏪���ӏ��������³���������������������³��������������������¡�

��돪�½���������\������¼\������«�������������돫�\���·��¢����������·Ð�����������Ï��������·����������������������¡�²��Џ�����������\������¼\��������ҏ��·���������·�����ď�¡�
Subject: OAuth ���Ð������\���\���\��\¹\���

��ď���돢Ï����������� bit.ly API �����������¼��ԏ�����

²������¹����³«���������·������������������ web \��\��\���\�ޏ��¼\·\���\��я����� bit.ly OAuth \���\���\���\��\���\������������Ð�����ď��·�����������������ď��������ޏ��������³�����������ҡ���������������������쏢�������������¹��¡�
�����������Ï��« client_id ������ client_secret ������³��������������ӏ����������ҏ����졭���������½Ð���������������»�����я��������·�����������Ï��«��¡�
���������·���³������\���\���\��\¹\�������µ���²¼���µ���������������������·�����ď�������¡�µ�������̏����ď��«������²������¹���������Ð���·��¡񏪩Ð�����ď�����²������½���������·������¼�����������·�����������ď�����³������������򏪿³�����Ң�µ��𡯏�������������������𡯏�����������������¾���������½��؏��«���������������¹��¡�
���³������������ 3 ²��я����䏢���� OAuth \���\���\��\¹\������������������������������¹��¡�
���ӏ�����������\���\���\��\¹\�������\·\«\������µ�����������ď��������¼��¡ߏ�������¡��½������������µ��������؏����������������������돢���������������ď����������ԏ��������³���ޏ����������������Ï�����»��С���ӏ����쏪�¾���µ�����������������������»�����я�¡�

���³����������������²������¹������\��\«\���\���\���¾��Ï����я��������¹:

bit.ly \������¼\�����¾: ���叢�叢��
bit.ly API \­���¼: X_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

µ¹���·�����������졭������������·���������¹��¡�

(�� �����������������\������¼\��������¡돪؏�����)
�������������¹��𡭏����������⏪�«��������¡��������������������������¾\���\���µ������������·��㏪������ҏ��\�����������ҏ��¼��������������ď�폢����²¼���̏����������������Ώ��������·�����ď�¡�
���������������³�����Ï����������Ï����⏪�«������·��㏪������ҏ����������Ï�����������������¡񏩡��䏪���䏢ď�����������������������������½�����Ï��������¹���̏�¡�ޏ�Џ�����·��������ď�����������½�����Ï����������Ï�����������������������������������������

������������������ġ������叢�·�����������������ď�������¡��½���������«������ 6 »��С���ӏ�������������¡������������я��̏����я����� \���\���\���\������¼���«���������������������я����������� �����������������������������ď��¾����

�����ԏ��������������������·�����ď�¡�������������¡�\���\���\�����������¡�
Subject: Re: OAuth ���Ð������\���\���\��\¹\���

������������¡񏢱��̡돫���¡�

����񏪿��������������̏����������Ï��쏢�����������ď������³������������������������\������¼\������������Ð���·��������¡񏪡�����³�����ӏ�ď��·���������«�����������ď��³�����������ҏ�¡�ġ��������������«�����������쏪���������я��·���������¹��¡��³������������²������¹����������½��Ï��������ԏ������돪؏���������������������¡񏢱��¡돪؏��������µ»������·�����ď����������������Ï��������ޏ��������������������������������¹��¡�

�����ď�������������������������������¡������������ď����� bitly \��\«\���\���\��������Ώ�����²�����������������¡�OAuth \��\��\���\�ޏ��¼\·\���\��я������Ð�����ď���½Ð�����������������������Ï��������������������������·�����ď�������¡� ²��ď��«���¼�����������¡����������ď����� bitly ������������ OAuth ������»��������Џ��¹������¾���������������·��䏪���»���¹������̏�������¾���¹�����������¡��µ��𡯏��������������������µ��������¡�¹������������»��������¡��򏢱���������������������«������������»��ӏ����ҏ��¹���������³�����������ҏ��³���³�����������쏪���я��«���·���������¹��¡�

��𡭏��¹�ޏ�ď����ҡ�������������������¹��¡�
\���\���\���

(�� ��������������������������­������\������¼\��������¡돪؏�����)
�����쏪���������я����ҡ���������я����������������я��������«��������¡��ӏ�ď���돢Ï�����������\���\¹\��ď��¼\���\���\��\�����������¡ߏ��돢�����������������³�����������ҏ����������������������Ώ��·���«�����������ď��ޏ�������������¡��½���³����������Ð������\���\���\�����¡��������­������������\���\����¼\¹\���\������¼\������������������������«���ޏ�¡�¾��������ҏ��������������»������������������������¹��������㏢����\���\���\���\���\��������ҏ����������쏢�·��������������������¡�µ��Ѣ����\���\���\������������ӏ����������Ï����叢���������ď��������«���·�����������я��������·���������������������쏢¡ߏ����������������я��«���·���������������������������·�����ď�¡�
���³������²�����������¾\���\������������쏢�«���²������ bit.ly �����¢�������³²��Џ���ޏ������돫������ҏ��������������������·��������¡�

������������¡񏪢µ���¾��¡���\���\���\��ď��¼\���\���\���������������������������\���\��\���»������·�����������������я��������«������ SPAM ���������������ޏ����������������Ï��·\���\���\���������\������¼\������������­���������������«�������������¹�����������������Ï�������¡ߏ��������«»�ߏ��������������������·�����ď�¡�
���½���·��������¡��³������\��\���\���\���¾���������������\���\��\���������³���»�����µ���»�����ď��������ޏ��«��������¡��³���������� SPAM �����¼��ԏ�����²�����������·���������·������������²������½���­����¹������������������������������Ï�������������������������������¡�

�����������������Ï��³��������������¡������������Ï�����������\¹\��ď��¼\���\���\���\������������폢�������������·�����ď�¡�¡�¡�
¼������������¹������������³«���ޏ��������¹��¡�


OAuth \��\��\����������Ð������



bit.ly ���«����������������»���\������¼\��������ҏ����������������Ï�������¡��½�������돪�¹���\��\«\���\���\��������Ώ�����������²�����������������¡�"Register OAuth Application" ������������������\���\���\������̏��о������·���������¹��¡� ���³������\���\���\���������²����¹��������¡�\��\��\������Ð������\���\��폢�¼\������̏��о������·���������¹��¡�

OAuth \\\Ð\\폢¼\

���³���³�����������������䏢�¹�����㏢�­������
NOTE: all redirect_uri values for this application must start with this URL.
OAuth 2.0 ������¾���¹�����¡�\������¼\������\��\��\���\�ޏ��¼\·\���\��я�����µ���²��� (���������·������������µ��Џ�����) ���·������¾���¹�����¡�code \���\���\������¼\��ď����؏��­������µ������������������������ URI �����ҏ�¡�redirect_uri \���\���\������¼\��ď����� OAuth \��\���\���\���\���\���\������������Ð���·������ access_token ¼���������»��Џ��������������¹����̏���ߏ��̏����������������¹���̏�¡��½���������̏��ӏ��³������\���\��폢�¼\������������Ð�����ď��¹������ URL ����������돪����돫�����ߏ��·������������������������\���\�����������¡ߏ����������������Ï��³�����������Ώ����ď��������������¹��¡�
���³������������ OAuth 2.0 ������»��������������쏢����������
The authorization server SHOULD require the client to pre-register their redirection URI or at least certain components such as the scheme, host, port and path. If a redirection URI was registered, the authorization server MUST compare any redirection URI received at the authorization endpoint with the registered URI.
��������¡񏪢µ���·���������������¹���̏�¡��ӏ��Ð�����ď��µ������������ URI ����������돪����돫�����ߏ��·���������������������������������ޏ�������������¡ߏ����������я��������³������������½��Џ��������������������������������¹���̏�¡���������������������������������������������»������������������·���������µ���·���������·��¡�bit.ly ���̏��½�����Ï����������Ï����������·��������������������������я��������«��������¡�\µ\���\���\���\���\��я����ҏ����̏����Џ��¹������\µ���¼\���\¹������»��������������������������������Ï��³�����������ҏ���������������������������\��\��\���������³«���������·���������·�����������Ï����������������Ï�����·������������¹��¡�
livedoor Blog ������������������\µ���¼\���\¹¼«������¡�\���\���\�돢�������Ώ�����²������������������«������ URL ����\µ\���\���\���\���\��я����������ď�ԏ�����\���\���\��\µ���¼\���\¹���������·�������ޏ�ď����Џ��µ������������������������������������¡�»������������������·��������¡�
���·���«��������¡񏪢��Ώ�����²������������«������������\���\��\���\���\��Ï����� OAuth �����ҏ��·��������¡񏪮��¾��⏢���������� window.opener ���������Ð���·��������¡�\���\��\���\���¾��Ï����я�����½��Џ��­��¹��𡯏��������������«�����������������������������я��������¹���ޏ�������¡�\µ\���\���\���\���\��я��̏����������������������� URL ��� window.open('\µ\���\���\���\���\��я��̏����������������������������� URL') ���������«�����������������ď�������¡񏪩��ӏ��³ window.opener ������\���\���\���\��ѡ돫������Ï���������������²�����ď�����¡돫����������������������������¹������������������¡��½�����я��������³�����я�����������\��\����������������«���·���������·�����ď�¡�

�����������������Ώ����� Facebook ������¾���¹����������돪�²¼���������������Ï��������������������� Site Domain �����������������Ï����Ώ�����������\���\���\���\���»�������������½Ð�����������������ď�������¡�\µ\���\���\���\���\��я����������¡ޏ�ď����Џ����������������������������������̏�����½Ð���������������¹��¡�

Facebook \\\Ώ²

bit.ly ���������������³�����������ҏ����������������������Ώ��·���«�����������ď��������¹��������¡�


OAuth \��\��\������Ð�����ď�����돪����������돪؏�����



¼�����������¡�bit.ly ������ OAuth \��\��\������Ð�����ď�������¡��³�����я������������������������돪؏��������̏����ď����������������я�����������������������������µ��������؏��­���������»�����я��������·�����ď�¡�

���� �돫������㏪�Ð�����ď��·������\��\��\��������������я����㏢����������½���½Ð������������������



���³�������������������������������� web ������¾���¼�ޏ����ҏ��������¹��¡��������µ���«�������ӏ�����½���\���\��폢�¼\������������·��¡ߏ��������¹��¡�

Registered OAuth Applications

�����������Ï��«������������������½������¹������\���\���\��������������������������»�����я�¡� ���Ð�����ď��¹������»��Џ�����\��\��\������¾������ typo ���·���������·�����������������ď�������¡��ӏ���¡�����������������\���\���\���\��я����Џ�𡯏����������Ï�¡ߏ��������«»�ߏ�������������������¡��돫������㏪�Ð�����ď��·���������·�����������������ď����������я����㏢�����돫⏢�­�����ӏ��»�����������������������������â�²�������̏����������𡯏��������¹��¡�
������������¡����ӏ��������������������ޏ�¡񡭏�ӡ돫������������ď�������¡����������ď�����������\��\��\������������·���������Ð�����ď��¹���������Ð�����������������������������я��폢�������«���­���������������«�����ď�����������µ��������؏��­�������³���������«���������������������������¹��¡�

���� ����ޏ�����\��\��\������¾���������Ð������½Ð������������������

���¾��ď���������������������Ï���¼«����̏������������������Ï��̏�¡�OAuth \��\��\������������·���������Ð�����ď��µ������������������������\��\��\����������¾����돢����\���\������¼\��������������������Ï�������¡�¾���µ­����ߡ돩̏���������¼��돪���ԏ��·�����ď��쏢���������á돫����������Ð�����ď��·�����������Ï��쏢¡ߏ��������«»�ߏ�������������������¡�submit ���·�����ď����� Application Name Unavailable ������������������\��\������¼���̏��½¼�����µ��������¡��½�������¾����돢�������������Ð�����ď��µ���»�����я��������쏢���������������䏢�������������������·���������������������¹��¡�
��������������¡����������Ï��¹�������������������������������µ������¡�
\���\¹\���������²��ҏ�������¡����Ð������»��Џ��������µ½�����������¡�
���³�������돪�¾������������򏪳����������������������������·�����������Ï�¡�

���ӏ����я����㏢����������½���½Ð��������������������¡ߏ����������я�����¾��Ï����я�¡��������������������­������\«\���\���\��\���������¼��돪���ԏ����ҏ��������·���������¹���ޏ�������¡��³���³������¾��Ï����я�����µ­���¹���³������������������³²¼��ԏ��̏�����»³½Ð���½���·���������������³�����������ҡ�������������������������������¹��¡�
�����������������Ώ�����²�����������½�����я��������³������²��ď������������������������«�����������ď�����������¡�������������������������\«\���\���\��\���������¼��돪���ԏ��·���������·�����ď�������¡�

���� 3 ������������\��\��\��������ҏ��Ð�����ď��·�����ď��������Ð������½Ð������������������



�돫������㏪�Ð�����ď��·�����ď����������я����㏢����������½���½Ð�����������������������я��������·��¡���¼��돪���ԏ��·�����ď��쏢���������á돫����������Ð�����ď��·�����������Ï��쏢¡ߏ�������������¡��¾����돢�������«������\���\�������������¹���������¹��폪��ߏ��·������\��\��\��������ҏ������������¹���³����������������������������²��я�����½Ð������������������¹�����𡯏���������������¼«���³�������������¡�
Facebook ������¾���¹�����¡����ď��������µ������\��\��\��������ҏ��Ð�����ď��¹������¾���¹��������� SMS ������¼��؏���¼������������«\���\���\���\���\���\«���¼\���������¹��������ҏ����Џ��������������³��������������������������¡񏪴��ď�ԏ�����\��\��\��������ҏ��Ð�����ď��¹���������³�����������ҏ�������������������������������¹���̏�¡�bit.ly ������¾���¹����������돫����������������¹��¡�
3 ������������\��\��\��������ҏ��Ð�����ď��·�����ď�������¡��½������������������ Registered OAuth Applications ������\���\���\��\���\��؏�����돪�²¼�����ԏ������������������� "Register OAuth Application" ������\���\���\��������������������������·������¾�����𡯏��������·���������������������¹����

»�����������¡��µ��ď�ԏ���������������������»�����������������я�����������»�ߏ�������������¡�2 �����������叢����¼��돪����\��\��\��������ҏ��Ð�����ď��·�����ď�������¡�3 �����������䏢����������������������³«�������������­�����Џ�����\��\��\��������ҏ��µ���·���������Ð������½Ð��������������������я��������������������·�����ď�¡�
���·���«���·��¡񡭏�����я������������������«�����¡���ӏ�¡�\���\���\�������¾�����𡯏�����

���ӏ����Ï��������������䏪���ӏ����Џ�����\��\��\������Ð������½Ð�����������������������������������я��쏢���������Ï��¹�������������������������������µ���쏢����������\��\«\���\���\���¼�����������������¡�bit.ly ������ OAuth ���Ð�����ď��·������������������\������¼\�������������������¼��������������ҏ��·���������������������������ޏ������������������폢�쏢�³���������µ�������������������������폢�쏢¡�

���½�����Ï�¡�»������������돪���������������\���\���\���\���¾��؏���������������㏢�������������·�����������������ď������������¹��¡�

���·���«���·��¡��������������������������������������򏪳�������¹�����𡯏�������������������¡���\���\���\���\�����������⏪�ҏ��«��������¡����������á돫������㏪�Ð������\���\��폢�¼\��������� URL ������³«�����������ď����������������Ï��������������폢¡ߏ�������¡��²��������²������³«�����������������Ώ��������·�����ď�¡�
���½�����Ï�¡����µ��ď�ԏ��������\��\��\��������ҏ������������¹�����ď��������������Џ������������³�����я��������������³�������������������������ď������������¹������¡�

���·���«���·��¡����������������������я��ӏ��½¼�����µ������������������������\���\���\��������� URL �����ҏ��������������ď�����½Ð�����������ď�¡ߏ�������������������¡�µ»���������·���«������������������������¡񏪩��ӏ��³���������̏�������ď��¾��폢�µ���������������������������������·�����������Ï�¡�돫�½��䏢�µ���������������·�������������������������������������������������𡯏��������������«�������������������������»�����я�¡�

�����������������Џ�������¡����Ð������»��Џ��������µ½������������������·���«�����������������������Ï��̏����������������»�����я�¡�

����������������𡯏����돢¡��³�����я��������������������������������̏�������������������¡񏪪�������������������������\«\���\���\��\���������¼��돪���ԏ��¹��������������������¡��³������\��\���\���\��������ҏ����������я�����¾�����������¡��µ½���������¹��ԏ���돢�µ��������������������µ���������������»�ߏ��������������¹��¡�

�돫��ޏ�Џ�¡�¼«����̏�����¾���¹���������\���\���\���\�������������㏢�����������������돫������⏢�µ½������������������������������»�����я��������·�����ď�¡��������µ���«\��\��\���¾��Ï����я��̏�����½���½Ð��������������������¡񏪩Ð�����ď�ď�ԏ����������폢�������̏���������¡��¾����돢��\���\������¼\��������������������я�����»�ߏ����������������������Ώ��������»�����я��������·�����ď��«��������¡�𡯏�𡯏�¡�¡�

OAuth \��\��\���������¼���������



���µ���������µ��������¡���������������������²���¾������·�����ď��������³��������������¡�\��\��\���������¼��������؏��������¹���̏�¡�@lyokato ���µ�����я�돫����� OAuth::Lite2 �������������� OAuth::Lite2::Client::WebServer ������»�����𡯏��Ð��¡�SYNOPSIS �����������������������������������叢���䏢�½���������������я������������������������������������ޏ�����¼���������½Ð���������������������������������������ď��«�����������ď������������¹���̏�¡�bit.ly ������ Access Token Response ���̏����ӏ��¹ Content-Type ���«������ OAuth::Lite2::Formatters ���� formatter �����ҏ�����������½Ð�����������������������������������Ï��������������̏��������������·��¡�access_token ����¼���������½Ð���������������������������������̏��������������·���������¹��¡�
�����������������Ώ�������¡�bit.ly ���̏����ӏ��¹ Content-Type ������ text/html ��������¡񏪪�����ď�������� application/x-www-form-urlencoded ������������������¡�
Facebook ���������³������������ text/plain �����������ӏ��¹������������¡������ҏ��������»���µ���������� Facebook �����Џ��������­���·�����ď�����������������½��Џ�����������pull request �����ҏ������������������¡�OAuth::Lite2 ������ 0.01_06 �돪�¹��Ώ��������Ð�ޏ�Џ��µ���������������·�����ď�¡�
���������������� bit.ly �����Џ����� text/html �����������������������ҏ��������������я�����»�ߏ����������� fork ���·������ pull req ���¹���������«���������¼�����������я�����¹�����𡯏����ď����я��������¹���̏�¡�bit.ly ������ Content-Type ����\��\������¹���������������������¡��½���������½��������¡����³�����я�������������������«���·������������������ bit.ly ������ OAuth �����������������ď����������叢�������«���������������³²�����돢�������������·���«������������������������������ww ���������«»�ߏ��������������·������������������½��ӡ���ӡ��돪����������돫���𡯏��������·��������������������¡�fork ���·�����ď�����������������»��Ώ��������������������·���������������������·�����ď�¡�¡�¡�

����������������𡯏����돢¡�
package OAuth::Lite2::Formatter::TextHTML;

use strict;
use parent qw(OAuth::Lite2::Formatter::FormURLEncoded);
sub type { "text/html" }

package OAuth::Lite2::Formatters;

__PACKAGE__->add_formatter(OAuth::Lite2::Formatter::TextHTML->new);
���³�����я���������� BK ���������������������쏢�������������������������������Ð�ޏ�Џ��������­�����������������쏢�������������������¹��¡�

�����������������Ώ�������¡񏪪»½������µ���»���������������ޏ����������� access_token ¼«�������������������������������������������¹��¡�
my $access_token = $client->get_access_token(
    code         => $code,
    redirect_uri => q{http://yourapp/callback},
) or return $your_app->error($client->errstr);
$app->store->save(login   => $access_token->{login});
$app->store->save(api_key => $access_token->{apiKey});
���³�����я��������������������������򏪤������·�����ď���������������
use strict;
use warnings;
use WebService::Bitly;

my $bitly = WebService::Bitly->new(
    user_name        => 'nipotan',
    user_api_key     => 'R_1234567890abcdefg',
    end_user_name    => $app->store->login,
    end_user_api_key => $app->store->api_key,
);
my $shorten = $bitly->shorten('http://example.com/');
�����Ώ����ď��������������·��������¡�WebService::Bitly ������ end_user_* ���������������������̏����Џ��·���������¹��¡�

������¼«\���\���\���\��я������Ð�ޏ��



����������������𡯏����돢¡�bit.ly ���������µ���������� PRO \��\«\���\���\�����������������¡񏩡���¼«\���\���\���\��я���»�����𡯏����ď��������·���������¹��¡�
PRO �������½������������ OAuth �������돫���������¡�\���\��폢�¼\������«������¹��ԏ�������𡯏��������¹���̏�¡��½���������·�����ď�����������²�������������������¾µ��������µ������������������������ 1 ½µ����ӏ��돢�������������«���«��������������¡ߏ����쏢�������³�����������ҏ��������������������������¹��¡�¼�����돪����� 4��¡�5 �����䏪���̏����㏢�������·�����ď��̏�¡�PRO ������¾���³������µ�����������������������������돪����������������������������³�����������ҏ���돩��̏����������ӏ����������������쏢�«��������������������¡�»���»��ӏ������¼����䏢�������«��������������­���������¹��������������ߏ������돪؏��������¹��¡�

���²������������ PRO ������¾���³������·�����ď�������¡�Custom Short Domain �����ҏ����Ώ��������·��¡��½������\���\���\���\��я����� A \���\³���¼\��������� bit.ly ����»������������¹������ IP \��\���\���\¹�����������Џ��ޏ��������Ð��¡�����������������������������¼«���»½��� URL ���̏�����������µ���������������¹��¡�


�돪�¾�����¡�����������������������\��\���\²������ bit.ly ������ OAuth �����쏢���������� API ���������¹���̏�¡�돩�³��\µ\���\µ\�������돢����������������������²������̏��������¹��¡�

bit.ly ������ OAuth ���Ð�ޏ�Џ����ҏ�����¹�����𡯏�����������������������я��³������������������»²¹������������·�����������Ώ��������������������µ��������¡�

cf. ���»½���URL�����쏢����������bit.ly�����·���µ����½\���\������¼\¹���·���������·������



nipotan at 19:06 | Comments(0)
³\\\\¼ҏ\\\\¼\²

Post a comment

Name:
URL:
  Remember info?: Rate: Face    Star
 
 
 
<% for ( var i = 0; i < 7; i++ ) { %> <% } %>
<%= wdays[i] %>
<% for ( var i = 0; i < cal.length; i++ ) { %> <% for ( var j = 0; j < cal[i].length; j++) { %> <% } %> <% } %>
0) { %> id="calendar-10151-day-<%= cal[i][j]%>"<% } %>><%= cal[i][j] %>
Twitter
Popular Entries
Recent Entries
Archives
Categories
Recent Comments
<%==comments[n].author%>
<% } %>
livedoor ReaderÐ
livedoor Blog\\\돢
livedoor \\\\\
Syndicate this site

'); label.html('\ \���\���\���\���\��\���\���\�돢����������¹­¹��Ï�����\��Џ��¼\½\���\���\���\��돢����������²�������̏��������������ď�����\���\���\­���¼(cookie)������»��������Џ��·���������������������¹��¡�
\ ���³������\Ð\������¼�����ҏ��������������������«�ޏ�䏪���������·��Џ��³���¹���������³������������\���\���\­���¼������»��������Џ�����¾µ����������������ď����������������ď������������������µ���»�����������������ď��������­���������¹��¡�
\ �����������ď�¡�����µ��ҏ�����������������¼���\��Џ��¼\���\������¼���������������������쏢�ޏ�����½���������������¼������³���­��������������������¡�\���\���\­���¼������»��������Џ����ҡ�����������¹���������³���������������������­���������¹��¡�
\ ¾��䏢돪㏢����\���\���\���\���\�񏪿��̏�����µ�̏����я����ҏ��³���������������������µ��������¡�\ '); banner.append(label); var closeButton = $('