Links
👨💻

Code Examples

Execute code without any hassle.

Check our AI 1SaaS Code generator:

>>>
1saas.co User Interface
1saas.co User Interface
Generate your Code with AI for 1SaaS

Run Javascript via API

You can find the currently supported packages for our js endpoint:
'lodash','crypto-js','dayjs','dayjs/plugin/duration','date-fns','date-fns/parseISO','date-fns/format','date-fns-tz','xlsx','csv','axios','dom-parse','util','airtable','moment','jsrsasign','csv-parse'
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:
51.116.128.150
51.116.132.138
51.116.132.172
51.116.132.180
51.116.132.200
51.116.132.205
51.116.132.231
51.116.132.237
51.116.132.196
51.116.132.197
51.116.132.238
51.116.132.239
20.79.85.218
20.79.86.155
20.79.86.192
20.79.86.245
20.79.86.254
20.79.87.28
51.116.145.32
You need more? Join our slack! Write in our Support channel and we will add them for you!
Last modified 17d ago