Skip to content

Commit db69c13

Browse files
committed
v0.9.4
Version 0.9.3 -> 0.9.4. Fixed a bug where the valid API response code of "QueuedForProcessing" (returned from some commands) would be interpreted as an error. Renamed directories to try and make the project more readable. Added latest DLL to the root of the project. Updated license to include Majestic-12 Ltd. Improved readme.
1 parent e91c91d commit db69c13

29 files changed

+1257
-1506
lines changed

LICENSE

Lines changed: 0 additions & 28 deletions
This file was deleted.

majesticseo-external-rpc-sample/LICENSE.txt renamed to LICENSE.txt

Lines changed: 29 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,29 @@
1-
2-
Version 0.9.3
3-
4-
Copyright (c) 2011, Majestic-12 Ltd
5-
6-
All rights reserved.
7-
8-
9-
10-
Redistribution and use in source and binary forms, with or without
11-
12-
modification, are permitted provided that the following conditions are met:
13-
14-
* Redistributions of source code must retain the above copyright
15-
16-
notice, this list of conditions and the following disclaimer.
17-
18-
* Redistributions in binary form must reproduce the above copyright
19-
20-
notice, this list of conditions and the following disclaimer in the
21-
22-
documentation and/or other materials provided with the distribution.
23-
24-
* Neither the name of the Majestic-12 Ltd nor the
25-
26-
names of its contributors may be used to endorse or promote products
27-
28-
derived from this software without specific prior written permission.
29-
30-
31-
32-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
33-
34-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35-
36-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37-
38-
DISCLAIMED. IN NO EVENT SHALL Majestic-12 Ltd BE LIABLE FOR ANY
39-
40-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
41-
42-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43-
44-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
45-
46-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
47-
48-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
49-
50-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1+
Copyright 2015, Majestic-12 Ltd trading as Majestic
2+
https://majestic.com
3+
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the distribution.
15+
16+
* Neither the name of Majestic-12 Ltd, its trademarks, nor any contributors
17+
to the software may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL Majestic-12 Ltd BE LIABLE FOR ANY
24+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MajesticSEO.External.RPC.dll

9 KB
Binary file not shown.

README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
Csharp-API-Connector
2-
====================
1+
C# Majestic API Connector
2+
=========================
33

4-
The C# connector is written using .NET Framework 3.5 and Visual Studio 2008.
4+
The C# connector is written using Visual Studio 2015 and targets .NET Framework 3.5.
5+
6+
```C#
7+
var api = new APIService("MY_API_KEY", "http://api.majestic.com/api_command");
8+
9+
var parameters = new Dictionary<string, string>()
10+
{
11+
{"items", "1"},
12+
{"item0", "majestic.com"}
13+
};
14+
15+
Response response = api.ExecuteCommand("GetIndexItemInfo", parameters);
16+
17+
if (response.IsOK())
18+
{
19+
DataTable dataTable = response.GetTableForName("Results");
20+
List<Dictionary<string, string>> rows = dataTable.GetTableRows();
21+
Dictionary<string, string> result = rows[0];
22+
23+
Console.WriteLine(result["ExtBackLinks"]);
24+
}
25+
else
26+
{
27+
Console.WriteLine(response.GetErrorMessage());
28+
}
29+
```
30+
31+
A full list of available commands can be found within the [developer documentation](http://dev.majestic.com/api/commands/).
Binary file not shown.
Binary file not shown.
Binary file not shown.
-10 KB
Binary file not shown.
-48.5 KB
Binary file not shown.

majesticseo_external_rpc/LICENSE.txt

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)