Skip to content

Instantly share code, notes, and snippets.

View Codesleuth's full-sized avatar

David Wood Codesleuth

View GitHub Profile
See: https://github.com/esendex/esendex-node-sdk
@Codesleuth
Codesleuth / get-win7-productkey.vbs
Last active August 29, 2015 14:26 — forked from eyecatchup/get-win7-productkey.vbs
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))
@Codesleuth
Codesleuth / CreateAndSendSMS.cs
Last active December 22, 2015 15:39 — forked from EsendexDev/CreateAndSendSMS.cs
Creating and Sending SMS messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk;
using com.esendex.sdk.messaging;
...
var credentials = new EsendexCredentials(USERNAME, PASSWORD);
var messagingService = new MessagingService(true, credentials);
try
{
var message = new SmsMessage("447123456789", "This is a test message...", "<myAccountReference>");
@Codesleuth
Codesleuth / GetInboxMessages.cs
Last active December 22, 2015 15:39 — forked from EsendexDev/GetInboxMessages.cs
Getting Inbox messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk.inbox;
...
const int pageNumber = 1;
const int pageSize = 20;
var inboxService = new InboxService(USERNAME, PASSWORD);
try
{
@Codesleuth
Codesleuth / GetSentMessages.cs
Last active December 22, 2015 15:39 — forked from EsendexDev/GetSentMessages.cs
Getting sent messages using the Esendex .Net SDK - Full details here: http://developers.esendex.com/
using com.esendex.sdk.sent;
...
const int pageNumber = 1;
const int pageSize = 20;
var sentService = new SentService(USERNAME, PASSWORD);
try
{