Skip to content

Instantly share code, notes, and snippets.

public interface EmployeeRepository extends CrudRepository<Employee, Integer>
{
Employee findByFirstNameAndLastName(String firstName, String lastName);
List<Employee> findByOfficeCountryNot(String country);
}
POST /v1/users/{userId}/bridges
{
“bridgeAudio”: “true”
}
HTTP/1.1 201 Created
Location: /v1/users/{userId}/bridges/{bridgeId}
@dtolb
dtolb / code.js
Created April 4, 2016 18:36
psuedo
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);
}
@dtolb
dtolb / messages.md
Created April 4, 2016 18:28
message
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>
@dtolb
dtolb / call-rate.json
Created April 4, 2016 18:22
Outbound call rate limit
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"
@dtolb
dtolb / Rate-limit.md
Created April 4, 2016 18:19
Rate Limits
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
@dtolb
dtolb / msg-rate.json
Created April 4, 2016 18:10
Message-rate-limit
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"
@dtolb
dtolb / java2.md
Created March 30, 2016 13:29
Bandwidth Java SDK v2.x

Java SDK update!

Please propose design patterns and desired functionality for the next version of the JavaSDK

In the initial pass I'm just pulling from the twilio SDK I figure they've thought a lot more about this than I have

@dtolb
dtolb / call.md
Created March 21, 2016 17:51
call
@dtolb
dtolb / MMS.md
Last active February 27, 2024 13:33
MMS Examples

MMS Examples

MMS & SMS Curl

MMS no DLR cURL

curl -v -X POST https://api.catapult.inetwork.com/v1/users/{user-id}/messages \