API Automation

Local API for Routine Automation Operations

1. Refresh the page


http://127.0.0.1:35000/api/v1/profile/refresh?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx



2. The current tab to open the specified URL


http://127.0.0.1:35000/api/v1/profile/openurl?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&url=www.xlogin.us



3. Get the source code of the web page


http://127.0.0.1:35000/api/v1/profile/source?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx



4. Client restart interface


http://127.0.0.1:35000/api/v1/client/restart




5. Import address API:


http://127.0.0.1:35000/api/v1/profile/addresses/import


② POST  


③ profileId


④ body (JSON need base64 encode):  


[{"name_on_card":"xlogin","nickname":"xlogin","card_number":"1241526456789","expiration_month":9,"expiration_year":2024}]



6. Import payment method API:


http://127.0.0.1:35000/api/v1/profile/credit_cards/import


② POST


③ profileId


④ body (JSON need base64 encode): 


[{"organization":"xlogin ltd","street_address":"xlogin  100","district":"Qixia","city":"nanjing","province":"Jiangsu","zipcode":"210046","country_code":"CN","number":"15644444","full_name":"dama","email":"[email protected]"}]