It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How I can insert SSL certificate and proxy params into get request for Trello Api ?

Hi everybody ! 

I having an issue. I can't pass through the proxy when I execute something like this : 

trello.lists.get_card(listId)

I develop my script in python to reach data from Trello API. 

I tryed to used "requests" and pass in param proxies values and certificate authority, but it's doesn't work. The error is : 

HTTPSConnectionPool(host='trello.com', port=443): Max retries exceeded with url: /1/lists/idboard/cards?key=""&token=""(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000000009D31B38>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')) 

And with requests I tryed something like this :

from trello import TrelloApi
import requests
trello = TrelloApi('key', 'token')
proxies = {
'http': 'http://id:password@ip-porxy:8080',
'https': 'http://id:password@ip-porxy:8080'
}
url = requests.get(trello.get_token_url('My App', expires='30days', write_access=True), proxies = proxies, verify = True, cert=['path/to/.cer'])

 

I am not sure I can do that with trello api and white listing the url is a possibility that I prefer avoid.

If someone can help me ! Really appreciate

Thank's a lot.

Regards, 

Juliette 

1 answer

1 accepted

0 votes
Answer accepted

Found solution, thanks ! 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,627 views 15 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you