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
Dim accountReference = "EX0000123" | |
Dim messagingService = New MessagingService("Username", "Password") | |
Dim singleMessage = New VoiceMessage("447123456789", "Message Body", accountReference) | |
messagingService.SendMessage(singleMessage) |
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
Dim accountReference = "EX0000123" | |
Dim messagingService = New MessagingService("Username", "Password") | |
Dim multipleMessages = New VoiceMessageCollection | |
'Important! Do not forget to set the acount refence on the messages collection | |
'This should be the same as the account reference for the individual messages | |
multipleMessages.AccountReference = accountReference | |
multipleMessages.Items.Add(New VoiceMessage("447123456789", "Message Body", accountReference)) | |
multipleMessages.Items.Add(New VoiceMessage("447456789123", "Message Body", accountReference)) |
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
Dim accountReference = "EX0000123" | |
Dim messagingService = New MessagingService("Username", "Password") | |
Dim singleMessage = New SmsMessage("447123456789", "Message Body", accountReference) | |
' Schedules a message to be sent on 31/10/2015 at 15:22 | |
messagingService.SendScheduledMessage(singleMessage, New System.DateTime(2015, 10, 31, 15, 22, 0)) |
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
:: Initial set up: | |
:: 1. Install firefox in Z:\Programs\Firefox | |
:: 2. Open up firefox and copy your profile from "C:\Users\YOUR_USERNAME_HERE\AppData\Local\Mozilla\Firefox\Profiles" | |
:: 2.1 Put it in Z:\Programs\Firefox | |
:: 2.2 Rename it to profile | |
:: 3. Save this script somewhere in your Z drive (the root makes this the easiest to access) | |
:: 3.1 Make a script in your Z drive which calls this scipt. E.g. | |
:: Save this as Z:\SetupProfiles.bat | |
:: Make Z:\Startup.bat with the following lines: | |
:: Z:\SetupProfiles.bat |
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
# Uses requests library | |
# http://docs.python-requests.org/en/latest/user/install/ | |
import requests | |
import base64 | |
username = "user@domain.com" | |
password = "password" # Sorry no API keys! | |
accountReference = "EX0123456" # https://www.esendex.com/echo (on the right hand side EX12345) |
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
var request = require('request'); // npm install request | |
var username = "user@domain.com"; | |
var password = "password"; // Sorry no API keys! | |
var accountReference = "EX0123456"; // https://www.esendex.com/echo (on the right hand side EX12345) | |
var recipient = "447123456789"; // Your number | |
var message = "Hello world!"; | |
request( |
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
// npm install restify | |
// npm install body-parser | |
// npm install body-parser-xml | |
var restify = require('restify'); | |
var bodyParser = require('body-parser'); | |
require('body-parser-xml')(bodyParser); | |
var server = restify.createServer(); | |
server.use(bodyParser.xml()); |
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 static class AES | |
{ | |
// Keys should be 32 bytes | |
public static string Encrypt(string text, byte[] key) | |
{ | |
using (var memoryStream = new MemoryStream()) | |
using (var aes = Aes.Create()) | |
using (var encryptor = aes.CreateEncryptor(key, aes.IV)) | |
{ | |
memoryStream.Write(aes.IV, 0, aes.IV.Length); |
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
export function testCase(...testParameters: any[]) { | |
// Syntactic sugar function | |
return testParameters; | |
} | |
export function testCases(...testCases: any[]){ | |
// Syntactic sugar function | |
return testCases; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer