Inquire detail introduction

        :param content_id: Content ID to inquire
        :type content_id: str

        :rtype: dict
551529
def get_detail_intro(self, content_id):
        
        content_type_id = self.get_detail_common(content_id)['content_type_id']
        # Get content type id

        resp = json.loads(urlopen(self.detail_intro_url.format(content_id, content_type_id)).read().decode('utf-8'))
        data = resp['response']['body']['items']['item']
        # Extract data

        del data['contentid']
        del data['contenttypeid']

        if content_type_id == 12:
            # 관광지
            keychain = {
                'accomcount': ('capacity', None),
                'chkbabycarriage': ('baby_carriage', None),
                'chkcreditcard': ('credit_card', None),
                'chkpet': ('pet', None),
                'expagerange': ('age_range', None),
                'expguide': ('guide', None),
                'infocenter': ('info_center', None),
                'opendate': ('open_date', None),
                'parking': ('parking', None),
                'restdate': ('rest_date', None),
                'useseason': ('season', None),
                'usetime': ('use_time', None)
            }
            _dict_key_changer(data, keychain)

            data['cultural_heritage'] = data.pop('heritage1', None) == 1
            data['natural_heritage'] = data.pop('heritage2', None) == 1
            data['archival_heritage'] = data.pop('heritage3', None) == 1
        elif content_type_id == 14:
            # 문화시설
            keychain = {
                'accomcountculture': ('capacity', None),
                'chkbabycarriageculture': ('baby_carriage', None),
                'chkcreditcardculture': ('credit_card', None),
                'chkpetculture': ('pet', None),
                'discountinfo': ('discount_info', None),
                'infocenterculture': ('info_center', None),
                'parkingculture': ('parking', None),
                'parkingfee': ('parking_fee', None),
                'restdateculture': ('rest_date', None),
                'usefee': ('use_fee', None),
                'usetimeculture': ('use_time', None),
                # 이용시간
                'scale': ('scale', None),
                'spendtime': ('spend_time', None)
                # 관람 소요시간
            }
            _dict_key_changer(data, keychain)
        elif content_type_id == 15:
            # 축제/공연/행사
            keychain = {
                'agelimit': ('age_limit', None),
                'bookingplace': ('reservation_place', None),
                'eventstartdate': ('start_date', None),
                'eventenddate': ('end_date', None),
                'eventplace': ('place', None),
                'festivalgrade': ('festival_grade', None),
                'placeinfo': ('place_guide', None),
                'spendtimefestival': ('spend_time', None),
                'sponsor1': ('organizer', None),
                'sponsor2': ('host', None),
                'subevent': ('sub_event', None),
                'usetimefestival': ('use_fee', None)
            }
            _dict_key_changer(data, keychain)

            data.pop('eventhomepage', None)
        elif content_type_id == 25:
            # 여행코스
            keychain = {
                'distance': ('distance', None),
                'infocentertourcourse': ('info_center', None),
                'schedule': ('schedule', None),
                'taketime': ('spend_time', None),
                'theme': ('theme', None)
            }
            _dict_key_changer(data, keychain)
        elif content_type_id == 28:
            # 레포츠
            keychain = {
                'accomcountleports': ('capacity', None),
                'chkbabycarriageleports': ('baby_carriage', None),
                'chkcreditcardleports': ('credit_card', None),
                'chkpetleports': ('pet', None),
                'expagerangeleports': ('age_range', None),
                'infocenterleports': ('info_center', None),
                'openperiod': ('open_period', None),
                'parkingleports': ('parking', None),
                'parkingfeeleports': ('parking_fee', None),
                'reservation': ('reservation_info', None),
                'restdateleports': ('rest_date', None),
                'scaleleports': ('scale', None),
                'usetimeleports': ('use_time', None),
                'usefeeleports': ('use_fee', None),
            }
            _dict_key_changer(data, keychain)
        elif content_type_id == 32:
            # 숙박
            keychain = {
                'accomcountlodging': ('capacity', None),
                'checkintime': ('checkin_time', None),
                'checkouttime': ('checkout_time', None),
                'foodplace': ('food_field', None),
                'infocenterlodging': ('info_center', None),
                'parkinglodging': ('parking', None),
                'pickup': ('pickup_service', None),
                'reservationlodging': ('reservation_info', None),
                'roomtype': ('room_type', None),
                'scalelodging': ('scale', None),
                'subfacility': ('sub_facility', None)
            }
            _dict_key_changer(data, keychain)

            data['benikia'] = data.pop('benikia', False) == 1
            data['cooking'] = data.pop('chkcooking', False) == 1
            data['goodstay'] = data.pop('goodstay', False) == 1
            data['korean_house'] = data.pop('hanok', False) == 1
            data['barbecue'] = data.pop('barbecue', False) == 1
            data['beauty'] = data.pop('beauty', False) == 1
            data['beverage'] = data.pop('beverage', False) == 1
            data['bicycle'] = data.pop('bicycle', False) == 1
            data['campfire'] = data.pop('campfire', False) == 1
            data['fitness'] = data.pop('fitness', False) == 1
            data['karaoke'] = data.pop('karaoke', False) == 1
            data['public_bath'] = data.pop('publicbath', False) == 1
            data['public_pc'] = data.pop('publicpc', False) == 1
            data['sauna'] = data.pop('sauna', False) == 1
            data['seminar'] = data.pop('seminar', False) == 1
            data['sports'] = data.pop('sports', False) == 1
        elif content_type_id == 38:
            # 쇼핑
            keychain = {
                'chkbabycarriageshopping': ('baby_carriage', None),
                'chkcreditcardshopping': ('credit_card', None),
                'chkpetshopping': ('pet', None),
                'fairday': ('fair_day', None),
                'infocentershopping': ('info_center', None),
                'opendateshopping': ('open_date', None),
                'opentime': ('use_time', None),
                'parkingshopping': ('parking', None),
                'restdateshopping': ('rest_date', None),
                'restroom': ('restroom_info', None),
                'saleitem': ('sale_item', None),
                'saleitemcost': ('sale_item_cost', None),
                'scaleshopping': ('scale', None),
                'shopguide': ('guide', None)
            }
            _dict_key_changer(data, keychain)
        elif content_type_id == 39:
            # 음식
            keychain = {
                'chkcreditcardfood': ('credit_card', None),
                'discountinfofodd': ('discount_info', None),
                'firstmenu': ('rep_menu', None),
                'infocenterfood': ('info_center', None),
                'kidsfacility': ('kids_facility', None),
                'opendatefood': ('open_date', None),
                'opentimefood': ('open_time', None),
                'packing': ('packing', None),
                'parkingfood': ('parking', None),
                'reservationfood': ('reservation_info', None),
                'restdatefood': ('rest_date', None),
                'scalefood': ('scale', None),
                'seat': ('seat', None),
                'smoking': ('smoking', None),
                'treatmenu': ('treat_menus', None)
            }
            _dict_key_changer(data, keychain)

            data['kids_facility'] = data.pop('kidsfacility') == 1 if 'kidsfacility' in data else False

        return data
647337
def get_asset_content_ids(self):
        
        # Implemented from template for osid.repository.Asset.get_asset_content_ids_template
        id_list = []
        for asset_content in self.get_asset_contents():
            id_list.append(asset_content.get_id())
        return IdList(id_list)
1085582
def _load(self, id, data):
        
        if isinstance(data, bytes):  # pragma: no cover Python >= 3.0
            data = data.decode('utf-8')

        document = json.loads(data)
        document['_id'] = id
        return document
1240392
def reference_id(self, reference_id):
        

        if reference_id is None:
            raise ValueError("Invalid value for `reference_id`, must not be `None`")
        if len(reference_id) > 40:
            raise ValueError("Invalid value for `reference_id`, length must be less than `40`")

        self._reference_id = reference_id
103379
public function show($id, Content $content)
    {
        return $content
            ->header(trans('admin.permissions'))
            ->description(trans('admin.detail'))
            ->body($this->detail($id));
    }
242062
def request_id(self, request_id):
        
        if request_id is not None and not re.search('^[A-Za-z0-9]{32}', request_id):
            raise ValueError("Invalid value for `request_id`, must be a follow pattern or equal to `/^[A-Za-z0-9]{32}/`")

        self._request_id = request_id
646607
def get(self, id):
        
        data = self.fetch('documents/%s.json' % id).get("document")
        data['_connection'] = self._connection
        return Document(data)
1050769
def request(self, id, **kwargs):
        
        data = self.get('requests', id, **kwargs)
        return data
281864
def get_page_by_id(self, page_id, expand=None):
        
        url = 'rest/api/content/{page_id}?expand={expand}'.format(page_id=page_id, expand=expand)
        return self.get(url)
784888
def get_mv_detail(self, mvid):
        
        url = uri + '/mv/detail?id=' + str(mvid)
        return self.request('GET', url)
817722
def get_content_type(self, content_type):
        
        qs = self.get_queryset()
        return qs.filter(content_type__name=content_type)
1082587
public function contentId($id = null)
    {
        if ($id === null) {
            return $this->_contentId;
        }
        $this->_contentId = $id;
    }
1066670
def playlist_detail(self, playlist_id):
        
        action = 'mtop.alimusic.music.list.collectservice.getcollectdetail'
        payload = {'listId': playlist_id}
        code, msg, rv = self.request(action, payload)
        return rv['data']['data']['collectDetail']
280450
def usable_id(cls, id):
        
        try:
            qry_id = int(id)
        except Exception:
            qry_id = None

        if not qry_id:
            msg = 'unknown identifier %s' % id
            cls.error(msg)

        return qry_id
892211
def get_requests_request_id(self, request_id):
        
        route_values = {}
        if request_id is not None:
            route_values['requestId'] = self._serialize.url('request_id', request_id, 'str')
        response = self._send(http_method='GET',
                              location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52',
                              version='5.0-preview.1',
                              route_values=route_values)
        return self._deserialize('Request', response)
53591
def get_related_ids(self, content_id, min_strength=None):
        '''
        '''
        related_labels = self.get_related(content_id,
                                          min_strength=min_strength)
        related_idents = set()
        for label in related_labels:
            related_idents.add(label.other(content_id))

        return list(related_idents)
1156467
def getRequest(self, id_):
        
        for request in self.requests:
            if request.id == id_:
                return request

        raise LookupError("Request %r not found" % (id_,))