Skip to content

Commit

Permalink
Merge pull request #83 from beamkenya/develop
Browse files Browse the repository at this point in the history
Release v0.20.20
  • Loading branch information
kamalogudah authored Aug 9, 2020
2 parents cbd31c2 + 9053aca commit 5494eac
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Here are the main modules we hope to develop in the process.
- [x] USSD
- [x] Airtime
- [x] Payments
- [ ] IoT
- [x] IoT
- [x] Application

## Installation
Expand All @@ -33,19 +33,38 @@ Available in Hex, the package can be installed by adding `at_ex` to your list of
```elixir
def deps do
[
{:at_ex, "~> 0.20.19"}
{:at_ex, "~> 0.20.20"}
]
end
```

## Configuration

- Create a `dev.exs` file under the `config` folder in the root of the project. like `touch config/dev.exs`.
- Create a `dev.exs` file under the `config` folder in the root of the project if you do not have it. like `touch config/dev.exs` to setup configs for development environment i.e, sandbox credentials check sample configuration below.
- Create a `prod.exs` file under the `config` folder in the root of the project if you dont have it. like `touch config/prod.exs` to setup `at_ex` configs for production environment i.e, live credentials check sample configuration below.
- Copy the contents of `dev.sample.exs` into the `dev.exs` created above.
- Go to [Africas Talking](https://account.africastalking.com/auth/register) to register for an account.
- On signing up go to the `https://account.africastalking.com/apps/sandbox`ntop get an **api key**
- On signing up go to the `https://account.africastalking.com/apps/sandbox` to get an **api key**
- Add the **api key** in the `api_key:`value in the `config/dev.exs` created above.

## Example Configuration setup
``` elixir
config :at_ex,
api_key: "===INSERT AFRICAS_TALKING_API_KEY HERE ===",
content_type: "application/x-www-form-urlencoded",
accept: "application/json",
username: "sandbox", #change to live username for prod.ex
stk_product_name: "AtEx", #Add your specific product name.
b2c_product_name: "AtEx",
b2b_product_name: "AtEx",
bank_checkout_product_name: "AtEx",
bank_transfer_product_name: "AtEx",
card_checkout_product_name: "AtEx",
# When changed to "YES" one will use the live endpoint url when in development
force_live_url: "NO"
```


## Documentation

The docs can be found at [https://hexdocs.pm/at_ex](https://hexdocs.pm/at_ex).
Expand Down
7 changes: 5 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule AtEx.MixProject do
def project do
[
app: :at_ex,
version: "0.20.19",
version: "0.20.20",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down Expand Up @@ -40,8 +40,11 @@ defmodule AtEx.MixProject do
[
# This option is only needed when you don't want to use the OTP application name
name: "at_ex",
maintainers: ["Paul Oguda", "Magak Emmanuel", "Zacck Osiemo", "Tracey Onim", "Sigu Magwa"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/elixirkenya/africastalking-elixir"}
links: %{"GitHub" => "https://github.com/elixirkenya/africastalking-elixir"},
source_url: "https://github.com/elixirkenya/africastalking-elixir",
homepage_url: "https://github.com/elixirkenya/africastalking-elixir"
]
end
end

0 comments on commit 5494eac

Please sign in to comment.