知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
API接口
白标接口及地址
saas平台添加或删除号码回调
最后更新于 2023/04/27   阅读数 228

saas平台添加或删除号码回调


  • 单个号码新增或删除回调返回数据

    {
    	"type": "import_number",  
        "mode": "single",   
    	"unique_id": "5d21a92e-9b4f-4ad7-8707-2b3b4a8a5f42", 
    	"user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",  
    	"task_id": "289b4a84-5648-4c92-8173-6addd8359d70", 
        "data": {          
             "number": "13012121211"
    	}
    }
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    plaintext
  • 多个号码新增或删除回调返回数据

    {
    	"type": "import_number",  
        "mode": "batch",  
    	"unique_id": "5d21a92e-9b4f-4ad7-8707-2b3b4a8a5f42",  
    	"user_id": "f00c8abc-433f-4666-a9d6-70479605ced1", 
    	"task_id": "289b4a84-5648-4c92-8173-6addd8359d70",
        "data": {          
    		"url": "http://xxx.com/agent-api/download-number?key=d54355f0-3315-471f-bfe" 
    	}
    }
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    plaintext
  • type的类型为 import_number(号码导入),del_number (删除号码)

  • mode表示号码模式,single(单个),batch(多个)

  • unique_id 表示批次号,可使用 查看回调数据 去查询

  • user_id 表示用户

  • task_id 表示任务

  • 在对单个号码操作中,data中返回的number即表示操作的号码,在对多个号码的操作中,data中的url是一个GET请求的地址,xxx.com 为OEM的地址,该地址返回的是一个json数据

  • url返回的数据

    {
    	"numbers":[
            "13012121212",
            "13924667471",
            "18821136663"
        ]
    }
    
    1
    2
    3
    4
    5
    6
    7
    plaintext
未能解决您的问题?请联系
本篇目录

saas平台添加或删除号码回调