<commit_before># SimpleDesk

[Simple Desk](https://www.getsimpledesk.com) is an SMS customer engagement platform that allows companies to have 2-way conversations with their customers over SMS - whether it's for sales, customer service, funnel abandonment, or transactional messages.

## Installation

Add this line to your application's Gemfile:

    gem 'simple_desk'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install simple_desk

Then add your API token to your `application_root/.env` file, or create one if you don't have it.

		SIMPLE_DESK_TOKEN=MY_TOKEN

## Usage

###**Adding Customers**
To get started and add a new customer, run:
		SimpleDesk.add_customer({phone_number: "1231231232"})

While `phone_number` is required, you can pass additional properties in:
		- phone_number (required)
		- email (optional)
		- first_name (optional)
		- last_name (optional)

Like this:
		
		params = {phone_number: "1231231232", email: "<EMAIL>", first_name: "Elijah", last_name: "Murray"}
		SimpleDesk.add_customer(params)


###**Messaging**
To message a user the format is similar
Note: They do not have to be existing in the system to message. You'll automatically create a new user if you message a new phone number

		message_and_phone_number = {to: 5551231234, text: "Howdy partner!"}
		SimpleDesk.message_customer(message_and_phone_number)
		
## To Do List

Features that still need to be implemented

		- Add ability to pass in properties and convert to base 64
		- Add auto capitalization for names
		- Parse formatting for phone number

## Contributing

1. Fork it ( https://github.com/[my-github-username]/simple_desk/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>update readme with IFTTT hack<commit_after># SimpleDesk

[Simple Desk](https://www.getsimpledesk.com) is an SMS customer engagement platform that allows companies to have 2-way conversations with their customers over SMS - whether it's for sales, customer service, funnel abandonment, or transactional messages.

## Installation

Add this line to your application's Gemfile:

    gem 'simple_desk'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install simple_desk

Then add your API token to your `application_root/.env` file, or create one if you don't have it.

		SIMPLE_DESK_TOKEN=MY_TOKEN

## Usage

###**Adding Customers**
To get started and add a new customer, run:
		SimpleDesk.add_customer({phone_number: "1231231232"})

While `phone_number` is required, you can pass additional properties in:
		- phone_number (required)
		- email (optional)
		- first_name (optional)
		- last_name (optional)

Like this:
		
		params = {phone_number: "1231231232", email: "<EMAIL>", first_name: "Elijah", last_name: "Murray"}
		SimpleDesk.add_customer(params)


###**Messaging**
To message a user the format is similar
Note: They do not have to be existing in the system to message. You'll automatically create a new user if you message a new phone number

		message_and_phone_number = {to: 5551231234, text: "Howdy partner!"}
		SimpleDesk.message_customer(message_and_phone_number)
		
## To Do List

Features that still need to be implemented

		- Add ability to pass in properties and convert to base 64
		- Add auto capitalization for names
		- Parse formatting for phone number
    - Update readme to explain setting up [IFTTT](https://ifttt.com/recipes/1110-send-an-sms-when-a-new-gmail-is-from-a-specific-email-address)

## Contributing

1. Fork it ( https://github.com/[my-github-username]/simple_desk/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.08956743002544529, 'fraction_numerical': 0.020356234096692113, 'mean_word_length': 4.326558265582656, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7332613', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1147, 'n_words': 468}