COMING SOON 🚀

pushbullet 푸시 발송

· 10년 전 · 1489

api가 쉽게 되어있어 급하게 만들어 보았습니다.

 

 

# pushbullet.class.php
[code]

<?php

class oh_push {

 

var $token_key;

var $push_url = 'https://api.pushbullet.com/v2/pushes';

 

public function __construct($token_key) {

$this->token_key = $token_key;

}

 

public function token() {

return $this->token_key;

}

 

public function send($email=array(), $body='', $title='') {

 

$type = 'note';

foreach($email as $k=>$v) {

 

$push_param = 'type='.$type.'&email='.$v.'&title='.$title.'&body='.$body;

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $this->push_url);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, $push_param);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Access-Token: '.$this->token_key));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

}

}

}

 

$oh_push = new oh_push('토큰키');

$oh_push->send(array('이메일'), '내용', '제목');

[/code]

 

 

토큰은 푸시불렛의 셋팅에서 받을수 있습니다.

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
10년 전 조회 1,188
10년 전 조회 1,146
10년 전 조회 1,230
10년 전 조회 1,156
10년 전 조회 1,101
10년 전 조회 1,079
10년 전 조회 1,089
10년 전 조회 1,073
10년 전 조회 1,105
10년 전 조회 1,134
10년 전 조회 1,092
10년 전 조회 1,148
10년 전 조회 1,085
10년 전 조회 1,192
10년 전 조회 1,273
10년 전 조회 1,243
10년 전 조회 1,182
10년 전 조회 1,106
10년 전 조회 1,227
10년 전 조회 1,134
10년 전 조회 1,164
10년 전 조회 1,105
10년 전 조회 1,088
10년 전 조회 1,089
10년 전 조회 1,111
10년 전 조회 1,205
10년 전 조회 1,153
10년 전 조회 1,242
10년 전 조회 1,129
10년 전 조회 1,155
10년 전 조회 1,150
10년 전 조회 1,198
10년 전 조회 1,301
10년 전 조회 1,382
10년 전 조회 1,177
10년 전 조회 1,243
10년 전 조회 1,132
10년 전 조회 1,049
10년 전 조회 1,101
10년 전 조회 1,237
10년 전 조회 1,129
10년 전 조회 1,148
10년 전 조회 1,137
10년 전 조회 1,272
10년 전 조회 1,258
10년 전 조회 1,776
10년 전 조회 1,167
10년 전 조회 1,270
10년 전 조회 1,158
10년 전 조회 1,490
10년 전 조회 1,206
10년 전 조회 1,189
10년 전 조회 1,115
10년 전 조회 1,108
10년 전 조회 1,407
10년 전 조회 1,297
10년 전 조회 1,106
10년 전 조회 1,222
10년 전 조회 1,378
10년 전 조회 1,092
10년 전 조회 1,155
10년 전 조회 1,110
10년 전 조회 1,570
10년 전 조회 1,268
10년 전 조회 1,297
10년 전 조회 1,207
10년 전 조회 1,333
10년 전 조회 1,539
10년 전 조회 1,417
10년 전 조회 1,355
10년 전 조회 1,308
10년 전 조회 1,335
10년 전 조회 1,312
10년 전 조회 1,260
10년 전 조회 1,727
10년 전 조회 1,243
10년 전 조회 1,242
10년 전 조회 1,466
10년 전 조회 1,263
10년 전 조회 1,298
10년 전 조회 1,134
10년 전 조회 1,396
10년 전 조회 1,227
10년 전 조회 1,148
10년 전 조회 1,205
10년 전 조회 1,883
10년 전 조회 1,223
10년 전 조회 1,236
10년 전 조회 1,235
10년 전 조회 1,351
10년 전 조회 1,830
10년 전 조회 1,421
10년 전 조회 1,243
10년 전 조회 1,179
10년 전 조회 1,215
10년 전 조회 1,309
10년 전 조회 1,213
10년 전 조회 1,290
10년 전 조회 1,202
10년 전 조회 1,373