2016-11-22 75 views
2

我有一个我写的Perl脚本,并且我试图使用OneSignal发送测试推送通知。这是我的JSON(为了便于阅读,已经过美化);OneSignal REST API发送推送通知,但我得到了500错误

{ 
    "contents": { 
     "en": "Here are your daily picks!" 
    }, 
    "app_id": "id_here", 
    "app_ids": ["id_here"], 
    "include_player_ids": ["aabaa581-b54a-4348-81cb-00ed65c1adf8"] 
} 

我得到一个错误信息,在纯HTML:

<p id="message" class="text">An Unexpected Error Occurred</p> 
    <p id="submessage" class="text">Error Code: 500</p> 
    <p id="explanation" class="text"> 
    We track these errors automatically, but if the problem persists feel free to contact us. 
    </p> 

任何想法,我究竟做错了什么?

回答