@@ -42,61 +42,6 @@ public function __construct(ApiClient $client)
42
42
parent ::$ _epoint = self ::ENTRY_POINT ;
43
43
}
44
44
45
- /**
46
- * Get snapshot info
47
- *
48
- * @param string $company Company
49
- * @param string $username Username
50
- * @param string $ts Timestamp
51
- * @return object
52
- */
53
- public function get ($ company , $ username , $ ts )
54
- {
55
- ApiDebug::p (__FUNCTION__ );
56
-
57
- $ response = $ this ->_client ->get ('/team/v1/snapshots/ ' . $ company . '/ ' . $ username . '/ ' . $ ts );
58
- ApiDebug::p ('found response info ' , $ response );
59
-
60
- return $ response ;
61
- }
62
-
63
- /**
64
- * Update snapshot
65
- *
66
- * @param string $company Company
67
- * @param string $username Username
68
- * @param string $ts Timestamp
69
- * @param array $params Parameters
70
- * @return object
71
- */
72
- public function update ($ company , $ username , $ ts , $ params )
73
- {
74
- ApiDebug::p (__FUNCTION__ );
75
-
76
- $ response = $ this ->_client ->put ('/team/v1/snapshots/ ' . $ company . '/ ' . $ username . '/ ' . $ ts , $ params );
77
- ApiDebug::p ('found response info ' , $ response );
78
-
79
- return $ response ;
80
- }
81
-
82
- /**
83
- * Delete snapshot
84
- *
85
- * @param string $company Company
86
- * @param string $username Username
87
- * @param string $ts Timestamp
88
- * @return object
89
- */
90
- public function delete ($ company , $ username , $ ts )
91
- {
92
- ApiDebug::p (__FUNCTION__ );
93
-
94
- $ response = $ this ->_client ->delete ('/team/v1/snapshots/ ' . $ company . '/ ' . $ username . '/ ' . $ ts );
95
- ApiDebug::p ('found response info ' , $ response );
96
-
97
- return $ response ;
98
- }
99
-
100
45
/**
101
46
* Get snapshot info by specific contract
102
47
*
@@ -108,7 +53,7 @@ public function getByContract($contractId, $ts)
108
53
{
109
54
ApiDebug::p (__FUNCTION__ );
110
55
111
- $ response = $ this ->_client ->get ('/team/v2 /snapshots/contracts/ ' . $ contractId . '/ ' . $ ts );
56
+ $ response = $ this ->_client ->get ('/team/v3 /snapshots/contracts/ ' . $ contractId . '/ ' . $ ts );
112
57
ApiDebug::p ('found response info ' , $ response );
113
58
114
59
return $ response ;
@@ -126,7 +71,7 @@ public function updateByContract($contractId, $ts, $params)
126
71
{
127
72
ApiDebug::p (__FUNCTION__ );
128
73
129
- $ response = $ this ->_client ->put ('/team/v2 /snapshots/contracts/ ' . $ contractId . '/ ' . $ ts , $ params );
74
+ $ response = $ this ->_client ->put ('/team/v3 /snapshots/contracts/ ' . $ contractId . '/ ' . $ ts , $ params );
130
75
ApiDebug::p ('found response info ' , $ response );
131
76
132
77
return $ response ;
@@ -143,7 +88,7 @@ public function deleteByContract($contractId, $ts)
143
88
{
144
89
ApiDebug::p (__FUNCTION__ );
145
90
146
- $ response = $ this ->_client ->delete ('/team/v2 /snapshots/contracts/ ' . $ contractId . '/ ' . $ ts );
91
+ $ response = $ this ->_client ->delete ('/team/v3 /snapshots/contracts/ ' . $ contractId . '/ ' . $ ts );
147
92
ApiDebug::p ('found response info ' , $ response );
148
93
149
94
return $ response ;
0 commit comments