Code Examples

Execute code without any hassle.

Check our AI 1SaaS Code generator:

>>> User Interface User Interface
Generate your Code with AI for 1SaaS

Run Javascript via API

You can find the currently supported packages for our js endpoint:
There are two methods to return your result.
result = { "data": YOURVARIABLE }
Or just:
return { "data": YOURVARIABLE }
Both methods will return the result in the JSON { "data": YOURVARIABLE }
Here you can find some code examples:
Some JavaScript Examples

Run Python via API

result = { "data": YOURVARIABLE }
We will return the result in the JSON { "data": YOURVARIABLE }
So please insert this at the end of your code!
Here you can find some examples:
Some Python Examples
We have installed a set of python libaries:
azure-functions airtable-python-wrapper numpy pandas pendulum requests scipy ntlm-auth requests_ntlm lxml Pillow pulp wordcloud snscrape nltk openpyxl google-api-python-client fuzzywuzzy python-Levenshtein CloudFlare praw sylk-parser python_http_client openai jwcrypto blowfish instaloader holidays pyairtable simplejson pybit woocommerce pygsheets pytesseract selenium imageio django pysftp pymssql gspread ccxt pydnevnikruapi psycopg2 sylk_parser QuantStats Markdown docx beautifulsoup4 youtube_transcript_api airtable gpt-index PyPDF2 telebot googlemaps spacy nlpcloud openai cosine-similarity embeddings pytube beautifulsoup4 pyperclip clipboard gevent pydub venmo-api isodate exif jwt pinecone-client Levenshtein elementpath

IP Addresses of 1SaaS Python

Also, in case of needing them these are our IP addresses you can use in you code:
You need more? Join our slack! Write in our Support channel and we will add them for you!
Last modified 17d ago