Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit 2e467f4

Browse files
committed
URN: add to top-level and add id_str helper
1 parent 17fa1c7 commit 2e467f4

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v0.1.2
2+
3+
* Add a few convenience methods.
4+
15
# v0.1.1
26

37
This is the initial release. Features include:

linkedin_messaging/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from .linkedin import ChallengeException, LinkedInMessaging
2+
from .api_objects import URN
23

34
__title__ = "linkedin_messaging"
4-
__version__ = "0.1.1"
5+
__version__ = "0.1.2"
56
__description__ = "An unofficial API for interacting with LinkedIn Messaging"
67

78
__license__ = "MIT"
89

910
__author__ = "Sumner Evans"
1011
__email__ = "[email protected]"
1112

12-
__all__ = ("ChallengeException", "LinkedInMessaging")
13+
__all__ = ("ChallengeException", "LinkedInMessaging", "URN")

linkedin_messaging/api_objects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def get_id(self):
2222
assert len(self.id_parts) == 1
2323
return self.id_parts[0]
2424

25+
def id_str(self):
26+
return ",".join(self.id_parts)
27+
2528
def __str__(self):
2629
return "{}:{}".format(
2730
self.prefix,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "linkedin_messaging"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "An unofficial API for interacting with LinkedIn Messaging"
55
authors = ["Sumner Evans <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)