{"id":15589710,"url":"https://github.com/santoshanand/nativescript-salesforce-sdk","last_synced_at":"2026-05-01T16:32:53.089Z","repository":{"id":57308737,"uuid":"95330099","full_name":"santoshanand/nativescript-salesforce-sdk","owner":"santoshanand","description":"A type script plugin to get salesforce data","archived":false,"fork":false,"pushed_at":"2017-07-20T17:51:10.000Z","size":1970,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T15:41:45.136Z","etag":null,"topics":["android","ios","manipulate-data","nativescript","nativescript-plugin","oauth","salesforce","salesforce-data","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santoshanand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-25T00:39:34.000Z","updated_at":"2024-05-30T16:54:35.000Z","dependencies_parsed_at":"2022-08-29T01:51:16.942Z","dependency_job_id":null,"html_url":"https://github.com/santoshanand/nativescript-salesforce-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshanand%2Fnativescript-salesforce-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshanand%2Fnativescript-salesforce-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshanand%2Fnativescript-salesforce-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshanand%2Fnativescript-salesforce-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santoshanand","download_url":"https://codeload.github.com/santoshanand/nativescript-salesforce-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246168090,"owners_count":20734389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","manipulate-data","nativescript","nativescript-plugin","oauth","salesforce","salesforce-data","typescript"],"created_at":"2024-10-02T23:04:25.506Z","updated_at":"2026-05-01T16:32:53.044Z","avatar_url":"https://github.com/santoshanand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Native Script Salesforce SDK\n\nIt is allows you to easily authenticate with Salesforce using OAuth (User Ajent flow), and to manipulate Salesforce data using a simple API.\n\n## Features\n\n- Asynchronous calls return ES6 promises   \n- Complete OAuth login workflow (User Agent)\n- Automatically refreshes OAuth access_token (if available) on expiration\n- API to manipulate data (create, update, delete, upsert)\n- Works with Android and iOS\n\n## Installation\n\n```\ntns plugin add nativescript-salesforce-sdk\n```\n\n## Uses\n\n```javascript\n  let auth = new Auth(page); // must need to pass page object\n  let config:IWebAuth = {\n    clientId:'3MVG9YDQS5WtC11p8U6jHYOrOLWdUuHO5tK5jXMv0mQCyzZ0cdjYUd93RGSCpQdP87VL6hQbUO3fXYRmAkJxq', \n    calbackUrl:'ns://nativescript/sdk', \n    loginUrl:'https://login.salesforce.com' \n  };\n  auth.on('success', (args)=\u003e {\n    \n    // Query\n    Apex.query('select id, Name from Account')\n      .then((data)=\u003e {\n      // console.log(JSON.stringify(data.content.toJSON().totalSize));\n      if(model !== undefined) {\n        model.items = data.content.toJSON().records;\n      }\n    }).catch((err) =\u003e {\n      console.log(JSON.stringify(err));\n    });\n    \n  }); \n  auth.on('fail', (args)=\u003e {\n    console.log('fails '+new Date().getMilliseconds());\n  }); \n \n  auth.login(config);\n\n```\n\nPlease check [demo application](https://github.com/santoshanand/sample-nativescript-salesforce-sdk)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantoshanand%2Fnativescript-salesforce-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantoshanand%2Fnativescript-salesforce-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantoshanand%2Fnativescript-salesforce-sdk/lists"}