Skip to content

Commit a965a3c

Browse files
authored
remove skill api (#34)
* remove skill api * fix test
1 parent 610bdf3 commit a965a3c

File tree

9 files changed

+5
-137
lines changed

9 files changed

+5
-137
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "peopledatalabs"
3-
version = "3.0.0"
3+
version = "4.0.0"
44
edition = "2021"
55
description = "A Rust client for the People Data Labs API"
66
documentation = "https://docs.peopledatalabs.com/docs/rust-sdk"

README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://www.peopledatalabs.com/images/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
2+
<img src="https://www.peopledatalabs.com/images/logos/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
33
</p>
44
<h1 align="center">People Data Labs Rust Client</h1>
55
<p align="center">Official Rust client for the People Data Labs API.</p>
@@ -267,20 +267,6 @@ let params = JobTitleParams {
267267
let results = client.job_title.get(params);
268268
```
269269

270-
#### Enrich Skill
271-
272-
```rust
273-
let skill_base_params = SkillBaseParams {
274-
skill: Some("python".to_string()),
275-
};
276-
let params = SkillParams {
277-
base_params: None,
278-
skill_base_params,
279-
};
280-
281-
let results = client.skill.get(params);
282-
```
283-
284270
#### Enrich IP
285271

286272
```rust
@@ -332,7 +318,6 @@ let client = PDLClient::new(&api_key).options(client_options).build();
332318
| [Location Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#locationclean) | `client.location.clean(params)` |
333319
| [School Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#schoolclean) | `client.school.clean(params)` |
334320
| [Job Title Enrichment API](https://docs.peopledatalabs.com/docs/job-title-enrichment-api) | `client.job_title.enrich(params)` |
335-
| [Skill Enrichment API](https://docs.peopledatalabs.com/docs/skill-enrichment-api) | `client.skill.enrich(params)` |
336321
| [IP Enrichment API](https://docs.peopledatalabs.com/docs/ip-enrichment-api) | `client.ip.enrich(params)` |
337322

338323
## 📘 Documentation <a name="documentation"></a>

examples/skill/main.rs

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

src/api/company.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,6 @@ mod tests {
169169
let resp = company.search(search_params).expect("ERROR");
170170

171171
assert_eq!(resp.status, 200);
172-
assert_eq!(resp.total, Some(2));
172+
assert_eq!(resp.total, Some(1));
173173
}
174174
}

src/api/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub mod jobtitle;
55
pub mod location;
66
pub mod person;
77
pub mod school;
8-
pub mod skills;
98

109
pub(crate) use autocomplete::Autocomplete;
1110
pub(crate) use company::Company;
@@ -14,4 +13,3 @@ pub(crate) use jobtitle::JobTitle;
1413
pub(crate) use location::Location;
1514
pub(crate) use person::Person;
1615
pub(crate) use school::School;
17-
pub(crate) use skills::Skill;

src/api/skills.rs

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

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mod api;
22
mod client;
33
mod models;
44

5-
use api::{Autocomplete, Company, JobTitle, Location, Person, School, Skill, IP};
5+
use api::{Autocomplete, Company, JobTitle, Location, Person, School, IP};
66
use client::{PDLClient, PDLError};
77

88
pub use models::{
@@ -11,7 +11,7 @@ pub use models::{
1111
CleanCompanyParams, CleanLocationParams, CleanSchoolParams, CompanyParams, EnrichCompanyParams,
1212
EnrichPersonParams, IPBaseParams, IPParams, IdentifyPersonParams, JobTitleBaseParams,
1313
JobTitleParams, LocationParams, PersonMetadata, PersonParams, RetrievePersonParams,
14-
SchoolParams, SearchBaseParams, SearchParams, SkillBaseParams, SkillParams,
14+
SchoolParams, SearchBaseParams, SearchParams,
1515
};
1616

1717
pub struct PDL {
@@ -22,7 +22,6 @@ pub struct PDL {
2222
pub location: Location,
2323
pub person: Person,
2424
pub school: School,
25-
pub skill: Skill,
2625
}
2726

2827
impl Default for PDL {
@@ -58,7 +57,6 @@ impl PDL {
5857
school: School {
5958
client: client.clone(),
6059
},
61-
skill: Skill { client },
6260
}
6361
}
6462
}

src/models/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub mod jobtitle;
66
pub mod location;
77
pub mod person;
88
pub mod school;
9-
pub mod skills;
109

1110
pub use autocomplete::{AutocompleteBaseParams, AutocompleteParams};
1211
pub use common::{BaseParams, SearchBaseParams, SearchParams};
@@ -20,4 +19,3 @@ pub use person::{
2019
PersonParams, RetrievePersonParams,
2120
};
2221
pub use school::{CleanSchoolParams, SchoolParams};
23-
pub use skills::{SkillBaseParams, SkillParams};

src/models/skills.rs

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

0 commit comments

Comments
 (0)