[A
activitree:push - получилось у когонить настроить? Или кто пользуется чем вместо него?
Size: a a a
[A
[A
Е
Е
A
EP
EP
EP
import { HTTP } from 'meteor/http';
const OneSignal = {
_base: 'https://onesignal.com/api/v1/',
send(method, api, data) {
const url = `${this._base}/${api}`;
const apiKey = ENV[env].ONESIGNAL.REST_API_KEY;
return HTTP.call(method, url, {
data,
headers: {
Authorization: `Basic ${apiKey}`,
'Content-Type': 'application/json; charset=utf-8',
},
});
},Е
EP
EP
EP
Е
EP
EP
EP
EP
EP
import { HTTP } from 'meteor/http';
const OneSignal = {
_base: 'https://onesignal.com/api/v1/',
send(method, api, data) {
const url = `${this._base}/${api}`;
const apiKey = ENV[env].ONESIGNAL.REST_API_KEY;
return HTTP.call(method, url, {
data,
headers: {
Authorization: `Basic ${apiKey}`,
'Content-Type': 'application/json; charset=utf-8',
},
});
},EP