@@ -25,9 +25,9 @@ Author: Jonathan Hornung ([JohnnyTheTank](https://github.com/JohnnyTheTank))
2525githubFactory.getUser({
2626 user:"<USERNAME _NAME >",
2727 access_token:"<ACCESS _TOKEN >"
28- }).success (function(_data){
28+ }).then (function(_data){
2929 //on success
30- }).error (function (_data) {
30+ }).catch (function (_data) {
3131 //on error
3232});
3333```
@@ -38,9 +38,9 @@ githubFactory.getRepoByUserAndName({
3838 user: " <USER_NAME>" ,
3939 repo: " <REPO_NAME>" ,
4040 access_token: " <ACCESS_TOKEN>"
41- }).success (function (_data ){
41+ }).then (function (_data ){
4242 // on success
43- }).error (function (_data ) {
43+ }).catch (function (_data ) {
4444 // on error
4545});
4646```
@@ -54,9 +54,9 @@ githubFactory.getReposByName({
5454 order: " <SORT_ORDER>" , // (optional) 'desc', 'asc'
5555 per_page: " <ITEMS_PER_PAGE>" , // (optional) valid values: 1-100 | default: 30
5656 access_token: " <ACCESS_TOKEN>"
57- }).success (function (_data ){
57+ }).then (function (_data ){
5858 // on success
59- }).error (function (_data ) {
59+ }).catch (function (_data ) {
6060 // on error
6161});
6262```
@@ -69,9 +69,9 @@ githubFactory.getReposByUser({
6969 order: " <SORT_ORDER>" , // (optional) 'desc', 'asc'
7070 per_page: " <ITEMS_PER_PAGE>" , // (optional) valid values: 1-100 | default: 30
7171 access_token: " <ACCESS_TOKEN>"
72- }).success (function (_data ){
72+ }).then (function (_data ){
7373 // on success
74- }).error (function (_data ) {
74+ }).catch (function (_data ) {
7575 // on error
7676});
7777```
@@ -86,9 +86,9 @@ githubFactory.getEventsFromRepoByUserAndName({
8686 order: " <SORT_ORDER>" , // (optional) 'desc', 'asc'
8787 per_page: " <ITEMS_PER_PAGE>" , // (optional) valid values: 1-100 | default: 30
8888 access_token: " <ACCESS_TOKEN>"
89- }).success (function (_data ){
89+ }).then (function (_data ){
9090 // on success
91- }).error (function (_data ) {
91+ }).catch (function (_data ) {
9292 // on error
9393});
9494```
@@ -101,9 +101,9 @@ githubFactory.getEventsByUser({
101101 order: " <SORT_ORDER>" , // (optional) 'desc', 'asc'
102102 per_page: " <ITEMS_PER_PAGE>" , // (optional) valid values: 1-100 | default: 30
103103 access_token: " <ACCESS_TOKEN>"
104- }).success (function (_data ){
104+ }).then (function (_data ){
105105 // on success
106- }).error (function (_data ) {
106+ }).catch (function (_data ) {
107107 // on error
108108});
109109```
0 commit comments