Skip to content

Commit

Permalink
Maintain compatibility with v1
Browse files Browse the repository at this point in the history
  • Loading branch information
zenizh committed Jul 13, 2023
1 parent c7794fe commit c8b141c
Show file tree
Hide file tree
Showing 57 changed files with 7,297 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/deprecated/line/bot.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2016 LINE
#
# LINE Corporation licenses this file to you under the Apache License,
# version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

require 'deprecated/line/bot/util'
require 'deprecated/line/bot/client'
require 'deprecated/line/bot/event'
require 'deprecated/line/bot/api/errors'
require 'deprecated/line/bot/api'
require 'deprecated/line/bot/httpclient'
31 changes: 31 additions & 0 deletions lib/deprecated/line/bot/api.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2016 LINE
#
# LINE Corporation licenses this file to you under the Apache License,
# version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

require 'line/client/version'

module Line
module Bot
module API
DEFAULT_OAUTH_ENDPOINT = "https://api.line.me"
DEFAULT_ENDPOINT = "https://api.line.me/v2"
DEFAULT_BLOB_ENDPOINT = "https://api-data.line.me/v2"
DEFAULT_LIFF_ENDPOINT = "https://api.line.me/liff/v1"

DEFAULT_HEADERS = {
'Content-Type' => 'application/json; charset=UTF-8',
'User-Agent' => "LINE-BotSDK-Ruby/#{LINE::Client::VERSION}"
}.freeze
end
end
end
21 changes: 21 additions & 0 deletions lib/deprecated/line/bot/api/errors.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2016 LINE
#
# LINE Corporation licenses this file to you under the Apache License,
# version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

module Line
module Bot
module API
class Error < StandardError; end
end
end
end
Loading

0 comments on commit c8b141c

Please sign in to comment.