Code | Message |
---|---|
message-rate-limit | You can send 1 messages per 1 seconds calculated as the average over 10 seconds. Your rate is: <limit> |
call-rate-limit | You can create 1 calls per 1 seconds calculated as the average over 10 seconds. Your rate is: <limit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface EmployeeRepository extends CrudRepository<Employee, Integer> | |
{ | |
Employee findByFirstNameAndLastName(String firstName, String lastName); | |
List<Employee> findByOfficeCountryNot(String country); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /v1/users/{userId}/bridges | |
{ | |
“bridgeAudio”: “true” | |
} | |
HTTP/1.1 201 Created | |
Location: /v1/users/{userId}/bridges/{bridgeId} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = request.post(msg_url); | |
if (response.status == 403 && response.body.code == ‘message-rate-limit’) { | |
error(‘Rate Limit for messages hit’); | |
wait(sample_period); | |
retry(msg_url); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
403 Forbidden | |
Content-Type: application/json | |
{ | |
"category": "limit", | |
"code": "call-rate-limit", | |
"message": "You can create 1 calls per 1 seconds, calculated as the average over 10 seconds. Your rate is: 1.1", | |
"details": [ | |
{ | |
"name": "requestMethod", | |
"value": "POST" |
Type | Count | Period (sec) | Sample Period (sec) |
---|---|---|---|
Outbound Message Per Number | 1 | 1 | 10 |
Outbound Messages Per Account | ∞ | ∞ | ∞ |
Outbound Calls Per Number | 1 | 1 | 10 |
Outbound Calls Per Account | 1 | 1 | 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
403 Forbidden | |
Content-Type: application/json | |
{ | |
"category": "limit", | |
"code": "message-rate-limit", | |
"message": "You can send 1 messages per 1 seconds, calculated as the average over 10 seconds. Your rate is: 1.1", | |
"details": [ | |
{ | |
"name": "requestMethod", | |
"value": "POST" |
- CallResponse :
Object
- Call
- find your credentials http://ap.bandwidth.com/docs/security/
- Replace from number with a Bandwidth Phone Number on your account
- Any valid media can be passed as array
curl -v -X POST https://api.catapult.inetwork.com/v1/users/{user-id}/messages \