You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get the list items in a json format and then dump it in a dataframe
I am having trouble right from the start with the RequestOptions module. Not sure if it's something on my end or with any part of the REST Client
url = "https://mydomain.sharepoint.com/sites/sa/Resources/sfs/_api/Web/lists/GetByTitle('tile with spaces')/items"
request= RequestOptions(url)
response=ctx.execute_request_direct(request)
data = json.loads(response.content)
list_items.extend(data['d']['results'])
I am getting this error:
Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: <module>)
sequence item 2: expected str instance, RequestOptions found
File "C:\user\Projects\newapp\Tests.py", line 57, in <module> (Current frame)
response = ctx.execute_request_direct(request)
I've tried adjusting the url by removing parts of it (without items, without GetByTitle) but no luck
The text was updated successfully, but these errors were encountered:
Starting from version 2.5.11, a separate client (SharePointRequest class) has been introduced, intended for working with the API without involving a model. For example:
I'm trying to get the list items in a json format and then dump it in a dataframe
I am having trouble right from the start with the RequestOptions module. Not sure if it's something on my end or with any part of the REST Client
I am getting this error:
I've tried adjusting the url by removing parts of it (without items, without GetByTitle) but no luck
The text was updated successfully, but these errors were encountered: