· 4 years ago · Feb 08, 2021, 07:46 AM
1/* !
2 * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// AppId of application, obtained from application information
18exports.AppId = '102805633';
19// The application's secretkey, obtained from the application information
20exports.AppSecret = 'abb8ba6c17947619bef0be67673dc38b39a508f1e46ec2405e79fae4db5cb643';
21// Obtain the token interface address from Huawei oauth2.0 service from the application information
22exports.AuthUrl = 'https://oauth-login.cloud.huawei.com/oauth2/v2/token';
23// Huawei push service access address
24exports.PushUrl = 'https://push-api.cloud.huawei.com/v1';
25
26// TargetToken the topic to be subscribed/unsubscribed
27exports.TargetTopic = 'targetTopic';
28// TargetCondition the condition of the devices operated
29exports.TargetCondition = '\'targetTopic\' in topics';
30// TargetToken the token of the device operated
31exports.TargetToken = 'pushtoken';
32// WebPushTokenArra the collection of the tokens of th devices operated
33exports.WebPushTokenArray = ['pushtoken1', 'pushtoken2'];
34// APNSTokenArray the collection of the tokens of th devices operated
35exports.APNSTokenArray = ['pushtoken1', 'pushtoken2'];
36// AndroidTokenArray the collection of the tokens of th devices operated
37exports.AndroidTokenArray = [
38 'AFrQYk8L2AtnFZUa4UUqnYzSAzyUVK9Gk0iH2nwuRqj_xEuAmIhy04ME485lDV3j0yimC3h9xUm_oKals1srCa_he2060a79S57WLhJJXt-k9ENjjdebEG2VIobKzZDQiA'
39];
40// FastTokenArray the collection of the tokens of th devices operated
41exports.FastTokenArray = ['pushtoken1', 'pushtoken2'];
42