Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
ce78f05
Added folder for entities (classes)
HananeMoshe Dec 22, 2016
62eb5e2
createds BLService base class and client entity
HananeMoshe Dec 22, 2016
1a53fa7
added base class containing Id property
HananeMoshe Dec 22, 2016
2ef84b3
Added Service and request objects
HananeMoshe Dec 25, 2016
3682db5
added parameter function, clientOptions class and a requestor service
HananeMoshe Dec 26, 2016
b549ad7
Added example for creating a client
HananeMoshe Dec 26, 2016
7b9cce7
adjusted syntax for return type
HananeMoshe Dec 26, 2016
c7270d3
added method and example for updating a client
HananeMoshe Dec 26, 2016
7b687f8
Fixed services constructure for authenticating with api key and secret.
HananeMoshe Dec 27, 2016
03c9e98
Added readme for version 2 of c# wrapper
HananeMoshe Dec 28, 2016
f73ad5d
added examples for client methods version 2
HananeMoshe Dec 28, 2016
6b7c8ac
Added services section to readme with clickable link to examples
HananeMoshe Dec 28, 2016
ea752e1
Added a brightlocal logo png file with the "local" in blue for git do…
HananeMoshe Dec 28, 2016
7b49173
Fixed url to logo
HananeMoshe Dec 28, 2016
3b80ce7
fixed url path to logo file
HananeMoshe Dec 28, 2016
52bcb90
added Location entity and location option class
HananeMoshe Dec 29, 2016
6c8e77b
Added functions to LocationServices object
HananeMoshe Dec 29, 2016
6b3a202
created UpdateLocationOptions object
HananeMoshe Dec 29, 2016
e19aad5
Merge remote-tracking branch 'refs/remotes/origin/master' into Develo…
HananeMoshe Dec 29, 2016
caef196
Fixes-removed unused using satatements and fixed json properties
HananeMoshe Jan 1, 2017
0ee854f
added Location Examples and fixed LocationService
HananeMoshe Jan 2, 2017
dba119c
Added Location examples to readme
HananeMoshe Jan 2, 2017
4b411e1
fixed url aprameter
HananeMoshe Jan 2, 2017
5ba5be3
Added lsrc options objects
HananeMoshe Jan 2, 2017
dd09e07
added lsrc objects
HananeMoshe Jan 2, 2017
3798e37
Added lsrc service methods and lsrc examples
HananeMoshe Jan 3, 2017
15fb6bd
removed if result.success= true check
HananeMoshe Jan 3, 2017
4d3d534
removed forward slash from urls
HananeMoshe Jan 3, 2017
07a8470
added Location link to readme version 2
HananeMoshe Jan 3, 2017
fdeade4
added lsrc examples and GetResults entity
HananeMoshe Jan 3, 2017
bde6faa
added lsrc examples to readme version 2
HananeMoshe Jan 3, 2017
1b6d9c7
ficed link in docs for lsrc
HananeMoshe Jan 3, 2017
ff563e1
added trailing spaces after link for link break
HananeMoshe Jan 3, 2017
e56e07a
fixed jsonproperty for email-addresses
HananeMoshe Jan 3, 2017
8454c76
Added all Lscu entities and services
HananeMoshe Jan 4, 2017
bcfed31
Replaced check with if result.success == false
HananeMoshe Jan 4, 2017
1cb5400
added json properties to entity
HananeMoshe Jan 4, 2017
22e5a30
added lscuExamples
HananeMoshe Jan 4, 2017
4592fa6
added lscu examples to git readme
HananeMoshe Jan 4, 2017
9c678c4
added Citation tracker entities and services
HananeMoshe Jan 4, 2017
6fc09c5
Added lsrc history & lsrc report entitities and fixed lsrc service an…
HananeMoshe Jan 4, 2017
84bd34c
Removed citationtrackergetall entity and made a genereic get all enti…
HananeMoshe Jan 4, 2017
4c78e98
Fixed client service methods, added entity for client search results
HananeMoshe Jan 5, 2017
dfdb47d
fixed properties on location entity and added location search entity
HananeMoshe Jan 5, 2017
532f0d8
Changed return type for create update and delete to BrightLocalSucces…
HananeMoshe Jan 9, 2017
7e4ad11
added entity for GetAll and for GetReport added examples for CT
HananeMoshe Jan 10, 2017
3515009
Added CT examples
HananeMoshe Jan 10, 2017
6f3103b
Added CitationBurstOption Class
HananeMoshe Jan 10, 2017
d4681fb
Added Cb Entities and Service Classes
HananeMoshe Jan 10, 2017
d88af26
fixed duplicate class names
HananeMoshe Jan 10, 2017
800f766
added review flow services and entities
HananeMoshe Jan 11, 2017
81ca901
Finished Review FLow ENtities and added examples
HananeMoshe Jan 13, 2017
0362866
fixed typos
HananeMoshe Jan 13, 2017
b07b7cf
added review flow to docs
HananeMoshe Jan 13, 2017
f92fb3b
Added GPW entities and services
HananeMoshe Jan 16, 2017
00fb68e
Merge remote-tracking branch 'refs/remotes/origin/master' into Develo…
HananeMoshe Jan 16, 2017
d95ca35
added gpw examples
HananeMoshe Jan 16, 2017
872ff89
added GPW examples to git docs
HananeMoshe Jan 16, 2017
daa9bd8
Fixed spacing for service menu in docs
HananeMoshe Jan 24, 2017
f88e263
Fixed spacing for docs menu
HananeMoshe Jan 24, 2017
c016e77
Fixed link for gpw
HananeMoshe Jan 24, 2017
a571760
fixed CbCampaignDetails entity
HananeMoshe Jan 24, 2017
3d5b7af
Added CB examples and corrected CB entities
HananeMoshe Jan 24, 2017
c375dac
Added Cb examples to readme doc
HananeMoshe Jan 24, 2017
ab0dd52
Fixed errors in return entities
HananeMoshe Jan 24, 2017
183023d
Ficed getallresults object
HananeMoshe Jan 24, 2017
e064204
removed locationId from response object
HananeMoshe Jan 24, 2017
221530d
fixed url parameter
HananeMoshe Jan 24, 2017
c9e13b7
fixed return type for run method
HananeMoshe Jan 24, 2017
9220861
fixed returned entitiy type for lsrcreport
HananeMoshe Jan 24, 2017
5a026ea
fixed return type
HananeMoshe Jan 24, 2017
5ea0776
fixed lsrc entity
HananeMoshe Jan 26, 2017
1255d5b
Added Entity for LSRC report results
HananeMoshe Jan 26, 2017
34db474
fixed docs to reflect new lsrcreportresults entity
HananeMoshe Jan 26, 2017
7a4badf
fixed update classes and objects
HananeMoshe Jan 26, 2017
f97607f
Fixed lscu response entities
HananeMoshe Jan 27, 2017
19ea3a7
fixed return type
HananeMoshe Jan 27, 2017
dd69c59
fixed url aprameter
HananeMoshe Jan 30, 2017
9d0929c
added constructor for rfdirectoryurls
HananeMoshe Jan 30, 2017
2e98a0a
added json serialization List parameters
HananeMoshe Jan 30, 2017
6f5b01b
added check for null parameter
HananeMoshe Jan 30, 2017
dac01e9
serialize list parameters
HananeMoshe Jan 30, 2017
241cdd2
serialize List objects
HananeMoshe Jan 30, 2017
ca10a94
changed url to new logo image
HananeMoshe Jan 30, 2017
ce64dd8
Merge remote-tracking branch 'refs/remotes/origin/master' into Develo…
HananeMoshe Jan 30, 2017
f768f15
added BatchRequestor Class
HananeMoshe Feb 7, 2017
08cc6eb
added batch ranking service and options entity
HananeMoshe Feb 7, 2017
4fd3e31
added entity for Succesful Batch commit
HananeMoshe Feb 7, 2017
1697844
added example for batch rankings search
HananeMoshe Feb 7, 2017
b050691
Tweaked text.
ejeliot Feb 9, 2017
4f58f21
Update README.md
ejeliot Feb 9, 2017
917759e
Update README.md
ejeliot Feb 9, 2017
c5c3299
changed naming convention from BrightLocal to Bl
HananeMoshe Feb 9, 2017
c844763
Changed naming convention from BrightLocal to Bl
HananeMoshe Feb 18, 2017
0549cef
removed "my" from all examples and docs
HananeMoshe Feb 18, 2017
fb9934b
Fixed naming convention for all services
HananeMoshe Feb 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions BrightLocal/src/BrightLocal/BlService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace BrightLocal
{
public class BlService
{
// Decalre Variables
public string api_key;
public string api_secret;

protected BlService(string apiKey, string apiSecret)
{
api_key = apiKey;
api_secret = apiSecret;
}
}
}
27 changes: 27 additions & 0 deletions BrightLocal/src/BrightLocal/Entities/BlBatchRankings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

//using System.Collections.Generic;

//namespace BrightLocal
//{
// public class BrightLocalBatchRankings
// {
// public bool success { get; set; }
// public RankingsResults results { get; set; }
// public RankingsStatuses statuses { get; set; }
// public string status { get; set; }
// }

// public class RankingsResults
// {
// public List<SearchRankV2Api> SearchRankV2Api { get; set; }
// }

// public class SearchRankV2Api
// {
// public List<Result> results { get; set; }
// public Payload payload { get; set; }
// public string status { get; set; }
// public int __invalid_name__job-id { get; set; }
//}

//}
18 changes: 18 additions & 0 deletions BrightLocal/src/BrightLocal/Entities/BlBatchSuccess.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BrightLocal
{
public class BlBatchSuccess
{
public int batchId { get; set; }
public JobIds jobids { get; set; }
}

public class JobIds : Dictionary<string, object>
{

}
}
51 changes: 51 additions & 0 deletions BrightLocal/src/BrightLocal/Entities/BlCbAllCampaigns.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BrightLocal
{
public class BlCbAllCampaigns
{
public CbResponse response { get; set; }
}

public class CbResponse
{
public List<CbResult> results { get; set; }
}

public class CampaignsCitation
{
public string name { get; set; }
public string status { get; set; }
public string site_type { get; set; }
public string citation_url { get; set; }
public string domain_authority { get; set; }
public string citation_value { get; set; }
}

public class CbAggregator
{
public string name { get; set; }
public string status { get; set; }
public string site_type { get; set; }
public string citation_url { get; set; }
public string domain_authority { get; set; }
public string citation_value { get; set; }
}

public class CbResult
{
public string campaign_id { get; set; }
public string location_id { get; set; }
public string campaign_name { get; set; }
public string date_purchased { get; set; }
public string date_completed { get; set; }
public string email { get; set; }
public string username { get; set; }
public string password { get; set; }
public List<CampaignsCitation> citations { get; set; }
public List<CbAggregator> aggregators { get; set; }
}
}
145 changes: 145 additions & 0 deletions BrightLocal/src/BrightLocal/Entities/BlCbCampaign.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
using System.Collections.Generic;

namespace BrightLocal
{
public class BlCbCampaign
{
public CampaignResponse response { get; set; }
}

public class CampaignResponse
{
public CampaignResults results { get; set; }
}

public class CampaignResults
{
public string campaign_id { get; set; }
public int location_id { get; set; }
public string campaign_name { get; set; }
public string creation_date { get; set; }
public string package_id { get; set; }
public string selection_type { get; set; }
public string paid { get; set; }
public string status { get; set; }
public string submission_date { get; set; }
public string purchase_date { get; set; }
public string completion_date { get; set; }
public string username { get; set; }
public string email { get; set; }
public string password { get; set; }
public string campaign_note { get; set; }
public string customer_note { get; set; }
public string white_label_profile_id { get; set; }
public string num_citations { get; set; }
public string package_price { get; set; }
public string website_address { get; set; }
public string campaign_country { get; set; }
public string campaign_state { get; set; }
public string campaign_city { get; set; }
public string business_category_id { get; set; }
public string business_category_name { get; set; }
public CampaignAddress address { get; set; }
public CampaignContact contact { get; set; }
public string mobile_number { get; set; }
public string fax_number { get; set; }
public CampaignDescriptions descriptions { get; set; }
public string num_employees { get; set; }
public string start_year { get; set; }
public ServiceNames service_names { get; set; }
public WorkingHours working_hours { get; set; }
public PaymentMethods payment_methods { get; set; }
public object company_logo { get; set; }
public CampaignPhotos photos { get; set; }
public CbEmailAlerts email_alerts { get; set; }
public string old_business_name { get; set; }
public List<object> specialist_info { get; set; }
public List<Stat> stats { get; set; }
public List<CampaignCitation> citations { get; set; }
public List<CampaignAggregator> aggregators { get; set; }
public CampaignUrls urls { get; set; }
}

public class Stat
{
public string start_date { get; set; }
public int citations_count { get; set; }
public int scheduled { get; set; }
public int submitted { get; set; }
public int live { get; set; }
public int updated { get; set; }
public int replaced { get; set; }
}

public class CampaignCitation
{
public string site { get; set; }
public string type { get; set; }
public string domain_authority { get; set; }
public string status { get; set; }
public string link { get; set; }
public string notes { get; set; }
}

public class CampaignAggregator
{
public string site { get; set; }
public string type { get; set; }
public string domain_authority { get; set; }
public string status { get; set; }
public string link { get; set; }
public string notes { get; set; }
}

public class CampaignUrls
{
public string interactive_url { get; set; }
public string pdf_url { get; set; }
public string csv_url { get; set; }
}

public class CbEmailAlerts
{
public string enabled { get; set; }
public List<string> addresses { get; set; }
}

public class CampaignPhotos : Dictionary<string, string>
{

}

public class PaymentMethods : Dictionary<string, string>
{

}

public class ServiceNames : Dictionary<string, string>
{

}

public class CampaignDescriptions
{
public string brief { get; set; }
public string full { get; set; }
}

public class CampaignContact
{
public string last_name { get; set; }
public string first_name { get; set; }
public string email { get; set; }
public string telephone { get; set; }
}

public class CampaignAddress
{
public string street_address_1 { get; set; }
public object street_address_2 { get; set; }
public object city { get; set; }
public object region { get; set; }
public string postcode { get; set; }
}

}
53 changes: 53 additions & 0 deletions BrightLocal/src/BrightLocal/Entities/BlCitationTracker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using Newtonsoft.Json;

namespace BrightLocal
{
public class BlCitationTracker
{
[JsonProperty("report-id")]
public int reportId { get; set; }
[JsonProperty("location-id")]
public int locationId { get; set; }
[JsonProperty("report-name")]
public string reportName { get; set; }
[JsonProperty("business-name")]
public string businessName { get; set; }
[JsonProperty("business-location")]
public string businessLocation { get; set; }
[JsonProperty("old-business-name-1")]
public string oldBusinessName1 { get; set; }
[JsonProperty("old-business-name-2")]
public string oldBusinessName2 { get; set; }
[JsonProperty("postcode")]
public string postcode { get; set; }
[JsonProperty("old-postcode-1")]
public string oldPostcode1 { get; set; }
[JsonProperty("old-postcode-2")]
public string oldPostcode2 { get; set; }
[JsonProperty("country")]
public string country { get; set; }
[JsonProperty("phone")]
public string phone { get; set; }
[JsonProperty("website")]
public string website { get; set; }
[JsonProperty("business-type")]
public string businessType { get; set; }
[JsonProperty("state-code")]
public string stateCode { get; set; }
[JsonProperty("monthly-run")]
public int monthlyRun { get; set; }
[JsonProperty("weekly-run")]
public int weeklyRun { get; set; }
[JsonProperty("white-label-profile-id")]
public int whiteLabelProfileId { get; set; }
[JsonProperty("active-only")]
public string activeOnly { get; set; }
public string notify { get; set; }
[JsonProperty("email-addresses")]
public string emailAddresses { get; set; }
[JsonProperty("is-public")]
public string isPublic { get; set; }
[JsonProperty("status")]
public string status { get; set; }
}
}
60 changes: 60 additions & 0 deletions BrightLocal/src/BrightLocal/Entities/BlCitationTrackerReport.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BrightLocal
{
public class BlCitationTrackerReport
{
public bool success { get; set; }
public CtReport report { get; set; }
}

public class CtReport
{
public string report_id { get; set; }
public string customer_id { get; set; }
public string location_id { get; set; }
public string weekly_run { get; set; }
public string monthly_run { get; set; }
public string report_name { get; set; }
public string website_address { get; set; }
public string business_name { get; set; }
public string business_location { get; set; }
public string postcode { get; set; }
public string country { get; set; }
public object state_code { get; set; }
public string address1 { get; set; }
public string address2 { get; set; }
public string telephone { get; set; }
public string business_type { get; set; }
public string primary_location { get; set; }
public string last_run_id { get; set; }
public string old_business_name_1 { get; set; }
public string old_postcode_1 { get; set; }
public string old_business_name_2 { get; set; }
public string old_postcode_2 { get; set; }
public string last_run { get; set; }
public string company_name { get; set; }
public string white_label_profile_id { get; set; }
public string notify { get; set; }
public string email_addresses { get; set; }
public string active_only { get; set; }
public string is_public { get; set; }
public string public_key { get; set; }
public string created { get; set; }
public string status { get; set; }
public CtUrls urls { get; set; }
}

public class CtUrls
{
public string interactive_url { get; set; }
public string pdf_url { get; set; }
public string csv_url { get; set; }
public string public_interactive_url { get; set; }
public string public_pdf_url { get; set; }
public string public_csv_url { get; set; }
}
}
Loading