-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Committing with Success removing old files
- Loading branch information
hellovikram
committed
Aug 29, 2018
1 parent
101f3f8
commit ed5a1b5
Showing
109 changed files
with
1,068 additions
and
91,264 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# Steps to install C# SDK with Mono-Develop IDE using Git (without Nuget/Package Manager) | ||
|
||
If you are using Mono for development and want to integrated with Pepipost directly by using Git, then below steps will help you in integrating this Pepipost C# code library in our IDE. | ||
|
||
|
||
## Prerequisites | ||
|
||
* [dotnet SDK](https://www.microsoft.com/net/download/dotnet-core/2.0) (> 2.0) | ||
* [mono devel](https://www.mono-project.com/download/stable/) | ||
* [Mono-develop IDE](https://www.monodevelop.com/download/) | ||
* [NETStandard.Library](https://www.nuget.org/packages/NETStandard.Library/)(>= 1.6.1) | ||
* [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) | ||
* A free account on [Pepipost](https://app.pepipost.com/index.php/signup/registeruser).If you don't have a one, click here to sign-up and get 30,000 emails free every month. | ||
|
||
## How to Build | ||
|
||
1. Download [Pepipost SDK](https://github.com/pepipost/pepipost-sdk-csharp/archive/master.zip) | ||
|
||
Unzip the SDK on any Location of your choice (we will unzipped in directory named testSDK) | ||
|
||
OR ```git clone https://github.com/pepipost/pepipost-sdk-csharp.git``` | ||
|
||
 | ||
|
||
|
||
2. Start Mono-Develop IDE | ||
|
||
Click **open** | ||
|
||
 | ||
|
||
|
||
3. Select **Pepipost.sln** from unzipped folder | ||
|
||
**Open** the Solution once you have selected the sln file | ||
|
||
 | ||
|
||
|
||
4. Once you have opened the solution the few files will appear with respective SDK: | ||
|
||
Add new project to the main directory as shown below | ||
|
||
 | ||
|
||
|
||
5. Choose template for new project will be prompted | ||
|
||
Select **App -> Console Application -> next** | ||
|
||
 | ||
|
||
|
||
6. Configure new project | ||
|
||
Give a desired name to your project (testConsole recommended) | ||
|
||
 | ||
|
||
|
||
7. Resolving dependencies | ||
|
||
a. Adding reference | ||
|
||
 | ||
|
||
Select **Edit Reference** | ||
|
||
 | ||
|
||
Select **Pepipost -> OK** | ||
|
||
 | ||
|
||
b. Adding packages | ||
|
||
 | ||
|
||
search **NewtonSoft.json -> Add packages** | ||
|
||
 | ||
|
||
|
||
8. Once all the packages are installed successfully | ||
|
||
Just copy and paste the [simpleUsage.md](https://github.com/hellovikram/pepipost-csharp/blob/master/simpleUsage.md) in your program.cs file present in your project. | ||
|
||
Build the project as shown below OR by just hit **F8** to build | ||
|
||
 | ||
|
||
|
||
9. Update the api_key and FromEmail parameters: | ||
|
||
* apikey: This will be available under: Login to your Pepipost account -> Settings -> Integration | ||
* FromEmail: If your fromemail address is e.g. info@mydomain.com, then the Sending Domain mydomain need to be verified and active under your Pepipost account. You can manage the Sending Domain under: Login to Pepipost -> Settings -> Sending Domains | ||
|
||
|
||
10. Change apiKey and FromEmail in your script: | ||
|
||
```string apiKey = "XXXXX-your-api-key-XXXX" ``` (near by line no 25 if your have copy the simpleUsage.md) | ||
|
||
```body_personalizations_0.Recipient = "your recipient emailid here"``` (near by line no 31) | ||
|
||
```body.From.FromEmail = "info@ your-verified-domain"``` (near by line no 37) | ||
|
||
|
||
11. Build the project to finally send your first test email Run the project. | ||
|
||
Run the project by hiting **Ctrl + F5** | ||
|
||
If your apikey and sending domain is proper, then response message will be success. | ||
|
||
 | ||
|
||
Hope, you have received your first test email 😃 | ||
|
||
If there is some problem related with config, then you will receive error message as shown below: | ||
|
||
 | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Step to install C# Library using Mono-Develop IDE | ||
|
||
If you are using Mono for development, then below steps will help you in integrating this Pepipost C# code library in our IDE. | ||
|
||
## Prerequisites | ||
|
||
* [dotnet SDK](https://www.microsoft.com/net/download/dotnet-core/2.0) (> 2.0) | ||
* [mono devel](https://www.mono-project.com/download/stable/) | ||
* [Mono-develop IDE](https://www.monodevelop.com/download/) | ||
* [NETStandard.Library](https://www.nuget.org/packages/NETStandard.Library/)(>= 1.6.1) | ||
* [Pepipost](https://www.nuget.org/packages/Pepipost/) | ||
* A free account on [Pepipost](https://app.pepipost.com/index.php/signup/registeruser). If you don't have a one, click here to sign-up and get 30,000 emails free every month. | ||
|
||
## How to build | ||
|
||
1. Start mono-develop IDE | ||
|
||
 | ||
|
||
|
||
2. Select **File -> New Solution** Or Simply **Ctrl+shift+N** | ||
|
||
Template for new project prompt will appear **App -> console application -> Next** | ||
|
||
 | ||
|
||
|
||
3. Give a name to your project | ||
|
||
```testConsole``` | ||
|
||
Once you have named your project simply click create | ||
|
||
 | ||
|
||
|
||
4. After Project is successfully created | ||
|
||
 | ||
|
||
|
||
5. Let's add Nuget package dependencies as described earlier | ||
|
||
 | ||
|
||
Select **official C# library Pepipost** | ||
|
||
 | ||
|
||
|
||
6. Once all the packages are installed successfully, just copy and paste the [simpleUsage.md](https://github.com/hellovikram/pepipost-csharp/blob/master/simpleUsage.md) in your program.cs file present in your project. | ||
|
||
Build the project as shown below OR by simply hit **F8** | ||
|
||
 | ||
|
||
7. Update the api_key and FromEmail parameters: | ||
|
||
* apikey: This will be available under: Login to your Pepipost account -> Settings -> Integration | ||
* FromEmail: If your fromemail address is e.g. info@mydomain.com, then the Sending Domain mydomain need to be verified and active under your Pepipost account. You can manage the Sending Domain under: Login to Pepipost -> Settings -> Sending Domains | ||
|
||
8. Change apiKey and FromEmail in your script: | ||
|
||
```string apiKey = "XXXXX-your-api-key-XXXX" ``` (near by line no 25 if your have copy the simpleUsage.md) | ||
|
||
```body_personalizations_0.Recipient = "your recipient emailid here"``` (near by line no 31) | ||
|
||
```body.From.FromEmail = "info@ your-verified-domain"``` (near by line no 37) | ||
|
||
9. Build the project to finally send your first test email Run the project. | ||
|
||
Run the project by hiting **Ctrl + F5** | ||
|
||
If your apikey and sending domain is proper, then response message will be success. | ||
|
||
 | ||
|
||
Hope, you have received your first test email 😃 | ||
|
||
If there is some problem related with config, then you will receive error message as shown below: | ||
|
||
 | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.26430.14 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pepipost", "Pepipost\Pepipost.csproj", "{539D99FD-F8E5-4C12-8F62-26EF7585CB94}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{539D99FD-F8E5-4C12-8F62-26EF7585CB94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{539D99FD-F8E5-4C12-8F62-26EF7585CB94}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{539D99FD-F8E5-4C12-8F62-26EF7585CB94}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{539D99FD-F8E5-4C12-8F62-26EF7585CB94}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
4 changes: 2 additions & 2 deletions
4
PepipostAPI.Standard/Configuration.cs → Pepipost/Configuration.cs
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
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
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
8 changes: 4 additions & 4 deletions
8
...stAPI.Standard/Exceptions/APIException.cs → Pepipost/Exceptions/APIException.cs
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
2 changes: 1 addition & 1 deletion
2
...PI.Standard/Http/Client/FileStreamInfo.cs → Pepipost/Http/Client/FileStreamInfo.cs
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
Oops, something went wrong.