Skip to content

Commit 2391988

Browse files
committed
extract url string as variable
1 parent ecaa697 commit 2391988

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py3pin/Pinterest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
BOARD_SECTION_RESOURCE = 'https://www.pinterest.com/resource/BoardSectionResource/create/'
5555
GET_BOARD_SECTIONS = 'https://www.pinterest.com/resource/BoardSectionsResource/get/'
5656
BOARD_SECTION_EDIT_RESOURCE = 'https://www.pinterest.com/resource/BoardSectionEditResource/delete/'
57+
GET_BOARD_SECTION_PINS = 'https://www.pinterest.com/resource/BoardSectionPinsResource/get/'
5758
UPLOAD_IMAGE = 'https://www.pinterest.com/upload-image/'
5859

5960

@@ -625,8 +626,8 @@ def get_section_pins(self, section_id='', page_size=250):
625626
"redux_normalize_feed": True,
626627
"section_id": section_id
627628
}
628-
url = 'https://www.pinterest.com/resource/BoardSectionPinsResource/get/'
629-
url = self.req_builder.buildGet(url=url, options=options)
629+
630+
url = self.req_builder.buildGet(url=GET_BOARD_SECTION_PINS, options=options)
630631
response = self.get(url=url).json()
631632
data = response['resource_response']['data']
632633
pins = []

0 commit comments

Comments
 (0)