레이블이 sms인 게시물을 표시합니다. 모든 게시물 표시
레이블이 sms인 게시물을 표시합니다. 모든 게시물 표시

2011년 11월 15일 화요일

구글 캘린더를 통해 무료 sms 발송

<?/*구글 캘린더를 통해 sms 발송*/require_once 'Google/Calendar.php';$ID='xxxxx@gmail.com';$PW='xxx';$startTime=date("Y-m-d\TH:i:s+09:00", time());$endTime=date("Y-m-d\TH:i:s+09:00", time()+180);$title='타이틀';$content='설명';$where='장소';$service = new Google_Calendar;if (!$service->requestClientLogin($ID,$PW)) {exit("ClientLogin has failed\n".$service->getResponseBody());}$entry = <<<GDATA<entryxmlns="http://www.w3.org/2005/Atom"xmlns:gd="http://schemas.google.com/g/2005"><categoryscheme="http://schemas.google.com/g/2005#kind"term="http://schemas.google.com/g/2005#event"></category><title type="text">$title</title><content type="text">$content</content><gd:where valueString="$where"></gd:where><gd:whenstartTime="$startTime"endTime="$endTime"><gd:reminder minutes='0' method='sms' /></gd:when></entry>GDATA;if (!$service->insert($entry, "http://www.google.com/calendar/feeds/xxxxxxxxxxxxx@group.calendar.google.com/private/full")) {exit("Inserting an entry has failed\n".$service->getResponseBody());}?>

이 파일이 필요함.
추가기능 밖에 없음.

xxxxxxxxxxxxx@group.calendar.google.com << 이부분은 캘린더ID
기본 캘린더를 쓰려면 default

참고로 캘린더ID는 여깄음.

사용자 삽입 이미지

출처:http://codepasta.net/50
http://www.rcdtokyo.com/etc/gdataapis/